Bug 30976: Make sure scalar context is used

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
This commit is contained in:
Tomas Cohen Arazi 2022-09-01 10:10:22 -03:00 committed by Arthur Suzuki
parent a50b31b664
commit c574e5d56c
1 changed files with 1 additions and 2 deletions

View File

@ -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' ] }
),
);