Skip to content

Commit

Permalink
Merge pull request #1763 from lepidus/i10511-stable_3_4_0
Browse files Browse the repository at this point in the history
pkp/pkp-lib#10511 menu item of type series without content even when they exist in the OMP 3.4
  • Loading branch information
kaitlinnewson authored Nov 22, 2024
2 parents 8bceee0 + e765990 commit 596d78a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ public function fetch($request, $template = null, $display = false)
->getCollector()
->filterByContextIds([$contextId])
->getMany();
$seriesTitles = $series->map(fn (Section $seriesObj) => [
$seriesTitles = $series->mapWithKeys(fn (Section $seriesObj) => [
$seriesObj->getId() => $seriesObj->getLocalizedTitle()
]);
])->all();

$categories = Repo::category()->getCollector()
->filterByParentIds([null])
Expand Down

0 comments on commit 596d78a

Please sign in to comment.