From a41761b35711b61a28f037e0a3c5743307273f53 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 --- catalogue/detail.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catalogue/detail.pl b/catalogue/detail.pl index 31ebfc2743..6b06f286cd 100755 --- a/catalogue/detail.pl +++ b/catalogue/detail.pl @@ -483,7 +483,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