From 68215672b8db59d2c8aea9334e27b32f5c43ff0e Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 31 May 2023 11:32:54 +0000 Subject: [PATCH] Bug 33497: (follow-up) Remove unecessary scalar Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi (cherry picked from commit c662bfe18e6cb47671cf5cc3fb7865e59e6bc007) Signed-off-by: Martin Renvoize (cherry picked from commit a41761b35711b61a28f037e0a3c5743307273f53) Signed-off-by: Matt Blenkinsop --- catalogue/detail.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catalogue/detail.pl b/catalogue/detail.pl index c47b9b44a8..7f1520c4dc 100755 --- a/catalogue/detail.pl +++ b/catalogue/detail.pl @@ -532,7 +532,7 @@ $template->param( materials => $materials_flag, ); -if (C4::Context->preference("AlternateHoldingsField") && scalar $items->count == 0) { +if (C4::Context->preference("AlternateHoldingsField") && $items->count == 0) { my $fieldspec = C4::Context->preference("AlternateHoldingsField"); my $subfields = substr $fieldspec, 3; my $holdingsep = C4::Context->preference("AlternateHoldingsSeparator") || ' '; -- 2.39.5