From dc08cbc2c40580c2281e680cea968475c66307cf Mon Sep 17 00:00:00 2001 From: Beatrycze Volk Date: Wed, 14 Jun 2023 17:59:43 +0200 Subject: [PATCH] Fix displaying of title for volumes Overwrite title with type and volume only when label is empty --- Classes/Controller/TableOfContentsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Controller/TableOfContentsController.php b/Classes/Controller/TableOfContentsController.php index 7840f8299c..c7dec4a765 100644 --- a/Classes/Controller/TableOfContentsController.php +++ b/Classes/Controller/TableOfContentsController.php @@ -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']; }