From 545a92bd98c039c97221135b00a07595a0c14418 Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Wed, 19 Jul 2023 10:51:21 +0100 Subject: [PATCH] Revert "Bug 33497: (follow-up) Remove unecessary scalar" This reverts commit a41761b35711b61a28f037e0a3c5743307273f53. --- catalogue/detail.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catalogue/detail.pl b/catalogue/detail.pl index 7f1520c4dc..c47b9b44a8 100755 --- a/catalogue/detail.pl +++ b/catalogue/detail.pl @@ -532,7 +532,7 @@ $template->param( materials => $materials_flag, ); -if (C4::Context->preference("AlternateHoldingsField") && $items->count == 0) { +if (C4::Context->preference("AlternateHoldingsField") && scalar $items->count == 0) { my $fieldspec = C4::Context->preference("AlternateHoldingsField"); my $subfields = substr $fieldspec, 3; my $holdingsep = C4::Context->preference("AlternateHoldingsSeparator") || ' '; -- 2.39.5