Bug 18403: Refactor and add Koha::Patron->libraries_where_can_see_patrons
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 6 Apr 2017 15:59:46 +0000 (12:59 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 12 Feb 2018 18:41:40 +0000 (15:41 -0300)
commit40ae454b9b0678d9e9f0418216bd546bc222e4f5
tree696b9ea5e97cf8e02fa869d33e154f1c9ec2044c
parent7809a6bd132e6bd2c98d69179fc2c2f0788decb0
Bug 18403: Refactor and add Koha::Patron->libraries_where_can_see_patrons

Technical note:
Here we are just refactoring a code that have been copied into 3 different places.
libraries_where_can_see_patrons is a terrible method's name, feel free to suggest
something better. The method return a list of branchcodes to be more efficient,
instead of Koha::Libraries

Signed-off-by: Signed-off-by: Jon McGowan <jon.mcgowan@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/Utils/DataTables/Members.pm
Koha/Libraries.pm
Koha/Patron.pm
Koha/Patrons.pm