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:
parent
a50b31b664
commit
c574e5d56c
|
|
@ -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' ] }
|
||||
),
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue