From a8ff6c1d6df4399d1682ce222c3d115ccd3be524 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Thu, 1 Sep 2022 10:10:22 -0300 Subject: [PATCH] [21.11.x] Bug 30976: Make sure scalar context is used Signed-off-by: Tomas Cohen Arazi --- catalogue/detail.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/catalogue/detail.pl b/catalogue/detail.pl index 0ee6da03fa..637d156973 100755 --- a/catalogue/detail.pl +++ b/catalogue/detail.pl @@ -539,9 +539,8 @@ if (C4::Context->preference("FRBRizeEditions")==1) { } if ( C4::Context->preference("LocalCoverImages") == 1 ) { - my $images = $biblio->cover_images; $template->param( - localimages => $biblio->cover_images->search( + localimages => scalar $biblio->cover_images->search( {}, { order_by => [ \"COALESCE(itemnumber, 0, 1)", 'timestamp' ] } ), ); -- 2.34.1