]> git.koha-community.org Git - koha.git/commit
Bug 23281: Implement ->search_with_library_limits in Koha::Patron::Attribute::Types
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 8 Jul 2019 17:15:48 +0000 (14:15 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 19 Aug 2019 09:20:08 +0000 (10:20 +0100)
commit90b48c2c48e2056a93b2619b94518769e6cefc9f
tree7fa536af2a96f7cbe46383ccd71528eb46932ce1
parentae4e992dfb2251d6a7cd9268a5171a814162b293
Bug 23281: Implement ->search_with_library_limits in Koha::Patron::Attribute::Types

This patch makes Koha::Patron::Attribute::Types inherit from
Koha::Objects::Limit::Library so it now has the
->search_with_library_limits method.

Tests are adjusted so it is clear that there is no behaviour change
compared to the (previsouly) called ->search

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

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Patron/Attribute/Types.pm
t/db_dependent/Koha/Patron/Attribute/Types.t