From c574e5d56cc1aa2c59207a1574302b8ef683b7fe Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Thu, 1 Sep 2022 10:10:22 -0300 Subject: [PATCH] Bug 30976: Make sure scalar context is used Signed-off-by: Tomas Cohen Arazi Signed-off-by: Arthur Suzuki --- 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.39.5