[Koha-bugs] [Bug 22944] avoid AnonymousPatron in search_patrons_to_anonymise
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Jun 21 14:13:30 CEST 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22944
Nick Clemens <nick at bywatersolutions.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #89933|0 |1
is obsolete| |
--- Comment #12 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 90905
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=90905&action=edit
Bug 22944: avoid AnonymousPatron in search_patrons_to_anonymise
In Koha::Patrons::search_patrons_to_anonymise() old issues already affected to
the anonymous patron should be avoided. It is useless and can impact
performance.
It is already working if AnymousPatron is not defined or 0 because of :
'old_issues.borrowernumber' => { 'not' => undef }
In theory the anymous patron should have privacy=0 but in case its not it
should be explicitly avoided.
Test plan :
Run t/db_dependent/Koha/Patrons.t
Signed-off-by: Nick Clemens <nick at bywatersolutions.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list