Bug 28973: Improve Koha::Patron::can_see_patron_infos efficiency
authorKyle M Hall <kyle@bywatersolutions.com>
Wed, 8 Sep 2021 12:31:47 +0000 (08:31 -0400)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 11 Nov 2021 01:47:14 +0000 (15:47 -1000)
commit9f45361c01b246a5e490bdebd67303072802e7e9
tree3afed75e6144403973ec3ba47b7390498c2b7c77
parentbd63b703b31d6383472ed309d4daa20469c5d414
Bug 28973: Improve Koha::Patron::can_see_patron_infos efficiency

The method can_see_patron_infos looks up a row in the branches table by branchcode just to get the branchcode it already has. This seems inefficient.

Test Plan:
1) Apply this patch
2) No changes should be noted

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 616c12a1e4238e0ffea722f669cce404511b046b)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/Patron.pm