Skip to content

Commit 5a04dc8

Browse files
committed
pkp/pkp-lib#7191 Fix series creation error messages
1 parent 300e2d2 commit 5a04dc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

controllers/grid/settings/series/form/SeriesForm.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function ($path) use ($form, $pressId) {
6969
));
7070
}
7171

72-
public function getSeries(): Series
72+
public function getSeries(): ?Series
7373
{
7474
return $this->section;
7575
}
@@ -197,7 +197,7 @@ public function fetch($request, $template = null, $display = false)
197197

198198
$templateMgr->assign([
199199
'allCategories' => $allCategories,
200-
'selectedCategories' => $this->getData('categories')->values()->all(),
200+
'selectedCategories' => $this->getData('categories')?->values()?->all() ?? [],
201201
]);
202202

203203
return parent::fetch($request, $template, $display);

0 commit comments

Comments
 (0)