]> git.koha-community.org Git - koha.git/commit
Bug 23271: (QA follow-up) Make search_with_library_limits fallback to userenv if...
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 13 Apr 2021 11:58:58 +0000 (08:58 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 21 Apr 2021 13:25:07 +0000 (15:25 +0200)
commitff3d99eded25202c565ca78b934e8809b719e247
treecacc724eac85fa63e3f457b247405b16f62ebfdf
parent99eaab903f4b3576809f42f98c78db8101aae0e2
Bug 23271: (QA follow-up) Make search_with_library_limits fallback to userenv if required

This patch makes  the generic method rely on C4::Context->userenv if the
library_id is not passed.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Patron/Attribute/Types.t
=> SUCCESS: Tests pass!
3. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Objects/Limit/Library.pm
Koha/Patron/Categories.pm
t/db_dependent/Koha/Patron/Attribute/Types.t