]> git.koha-community.org Git - koha.git/commit
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)
committerKyle Hall <kyle@bywatersolutions.com>
Fri, 5 Nov 2021 18:09:57 +0000 (14:09 -0400)
commit616c12a1e4238e0ffea722f669cce404511b046b
treea2c3881f67b55cea4864f574f631d349f06291e3
parent14475990626dd16f82b08415b07cf8669ce51a54
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>
Koha/Patron.pm