https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26139 --- Comment #7 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 108965 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108965&action=edit Bug 26139: Koha::Template::Plugin::Context There is something wrong with our ->search method and TT behaviours, it is hard to retrieve object list in a scalar context. If [% objects.method.count %] is called, objects.method will get the first object of the list and count will explode (Koha::Object->count does not exist) We need to force the call in a scalar context to retrieve an iterator and prevent to fetch all the objects (we could have called all then size, but it's not efficient) -- You are receiving this mail because: You are watching all bug changes.