]> 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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 3 Nov 2021 14:40:52 +0000 (15:40 +0100)
commite44b4837f58fe22fa2010cceffac0fa0171277fc
tree653693b3f55d19e9af4d1feafdf014ec74903f78
parent2f4d5954c99c7c206d5ccf8f335014fdc1f4723e
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>
Koha/Patron.pm