[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:48:06 CEST 2021


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

--- Comment #39 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
(In reply to Tomás Cohen Arazi from comment #16)
> (In reply to Jonathan Druart from comment #15)
> > Wow, no! This is not as trivial as it looks like.
> > 
> > We must force scalar context actually. I am expecting lot of side-effects
> > with this change.
> 
> I get that, but isn't it the case already? We already force scalar context
> when passing things to the templates.

It is not the case already. There is no need to force scalar now on
$item->holds or similar constructions since you get a single "plural Koha
object" back (if you know what I mean).

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


More information about the Koha-bugs mailing list