[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
Mon Sep 27 08:55:42 CEST 2021


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

--- Comment #50 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
(In reply to Tomás Cohen Arazi from comment #48)
> We should be able to use the TT scalar plugin and do things like:
> 
> [% USE scalar %]
> [% SET var = scalar.biblio.items %]
> 
> but I haven't checked it.

I tried:

+    [% IF biblio.scalar.items.scalar.filter_by_for_hold.count %]

+    var countorders = [% biblio.scalar.orders.scalar.filter_by_current.count
|| 0 | html %];
+    var countdeletedorders = [%
biblio.scalar.orders.scalar.filter_by_cancelled.count || 0 | html %];

with [% USE scalar %] and [% USE Scalar %], but couldnt get them to work.

Template process failed: undef error - The method Koha::Biblio->scalar is not
covered by tests!

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


More information about the Koha-bugs mailing list