[Koha-bugs] [Bug 16532] Libraries and groups showing empty tables if nothing defined

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue May 17 15:56:42 CEST 2016


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

--- Comment #4 from Owen Leonard <oleonard at myacpl.org> ---
> Even with no libraries defined, "[% IF libraries.size %]" always evaluates
> as true. Why?

Jonathan explained to me in IRC that because "libraries" is an object (from
Koha::Libraries) we should use "count" instead:

[% IF libraries.count %]...

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


More information about the Koha-bugs mailing list