[Koha-bugs] [Bug 28883] Koha::Objects->_new_from_dbic doesn't work correctly in list context

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Sep 24 08:51:35 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28883

--- Comment #40 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
[PATCH 4/5] Bug 28883: Fix wrong list context calls
-    my $images = $biblio->cover_images;
-    $template->param( localimages => $biblio->cover_images );
+    $template->param( localimages => scalar $biblio->cover_images );
Why didnt you pass $images instead ? The original code was a bit weird.

But yes, it serves as a good example of why we cannot do this without
immediately fixing a lot of calls.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list