Skip to content

Commit

Permalink
Fix displaying of title for volumes
Browse files Browse the repository at this point in the history
Overwrite title with type and volume only when label is empty
  • Loading branch information
beatrycze-volk committed Jun 27, 2023
1 parent 7e40191 commit dc08cbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Controller/TableOfContentsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ private function setTitle($entry) {
return $this->getTranslatedType($entry['type']) . ' ' . $entry['label'];
}

if ($entry['type'] == 'volume') {
if ($entry['type'] == 'volume' && empty($entry['label'])) {
return $this->getTranslatedType($entry['type']) . ' ' . $entry['volume'];
}

Expand Down

0 comments on commit dc08cbc

Please sign in to comment.