Bugzilla – Attachment 143982 Details for
Bug 31937
Prevent cleanup_database.pl from locking too many accounts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31937: Fix Patrons::search_unsubscribed - sharpen condition
Bug-31937-Fix-Patronssearchunsubscribed---sharpen-.patch (text/plain), 1.28 KB, created by
Jonathan Druart
on 2022-11-17 07:05:00 UTC
(
hide
)
Description:
Bug 31937: Fix Patrons::search_unsubscribed - sharpen condition
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2022-11-17 07:05:00 UTC
Size:
1.28 KB
patch
obsolete
>From f4cb7dad3fecb0dd511a285623bca2e80febaeeb Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Wed, 26 Oct 2022 15:00:53 +0000 >Subject: [PATCH] Bug 31937: Fix Patrons::search_unsubscribed - sharpen > condition > >The condition is fine as long as we only have GDPR consents. >But if you dont, you would have trouble. I know :) >Lets prevent that here, although the table still has an ENUM. So >double safety. > >Test plan: >Run t/db_dependent/Koha/Patrons.t >Bonus: Run cleanup_database.pl and check for unusual number of >locked accounts: > misc/cronjobs/cleanup_database.pl --confirm -v --sessions > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > Koha/Patrons.pm | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/Koha/Patrons.pm b/Koha/Patrons.pm >index 24e3d9de8a6..c210f53f4bc 100644 >--- a/Koha/Patrons.pm >+++ b/Koha/Patrons.pm >@@ -237,6 +237,7 @@ sub search_unsubscribed { > return $class->search( > { > 'patron_consents.refused_on' => { '<=' => $str }, >+ 'patron_consents.type' => 'GDPR_PROCESSING', > 'login_attempts' => $cond, > }, > { join => 'patron_consents' }, >-- >2.25.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 31937
:
142712
|
143979
|
143980
| 143982