[Koha-bugs] [Bug 23608] Koha::Objects::Limit::Library->get_library_limits can return undef

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Nov 15 11:36:21 CET 2021


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

Jonathan Druart <jonathan.druart+koha at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jonathan.druart+koha at gmail.
                   |                            |com

--- Comment #3 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
I was going to open a bug for that, it leads to several warnings in
categories.pl

[WARN] Argument "" isn't numeric in numeric gt (>) at
/kohadevbox/koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt
line 629.

However my patch was simply doing:

-    return unless @branchcodes;
+    return Koha::Libraries->new->empty unless @branchcodes;

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


More information about the Koha-bugs mailing list