Bugzilla – Attachment 133612 Details for
Bug 30288
Provide links to OPACUserJS and OPACUserCSS from News/HTML customizations
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28786: Don't set auth_method to NULL in ->anonymize
Bug-28786-Dont-set-authmethod-to-NULL-in--anonymiz.patch (text/plain), 1.49 KB, created by
Lucas Gass
on 2022-04-21 21:26:52 UTC
(
hide
)
Description:
Bug 28786: Don't set auth_method to NULL in ->anonymize
Filename:
MIME Type:
Creator:
Lucas Gass
Created:
2022-04-21 21:26:52 UTC
Size:
1.49 KB
patch
obsolete
>From 3c8f41ff16e3bfdc8e79ca47658dba7dacd901bb Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 21 Apr 2022 11:41:55 +0200 >Subject: [PATCH] Bug 28786: Don't set auth_method to NULL in ->anonymize > >DBI Exception: DBD::mysql::st execute failed: Column 'auth_method' cannot be null > >caught by t/db_dependent/Koha/Patrons.t > >Signed-off-by: Mason James <mtj@kohaaloha.com> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> > >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> > >https://bugs.koha-community.org/show_bug.cgi?id=30288 >--- > Koha/Patron.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/Patron.pm b/Koha/Patron.pm >index 3a26db0d6a..c424c30174 100644 >--- a/Koha/Patron.pm >+++ b/Koha/Patron.pm >@@ -1769,7 +1769,7 @@ sub anonymize { > split /\s*\|\s*/, C4::Context->preference('BorrowerMandatoryField') }; > $mandatory->{userid} = 1; # needed since sub store does not clear field > my @columns = $self->_result->result_source->columns; >- @columns = grep { !/borrowernumber|branchcode|categorycode|^date|password|flags|updated_on|lastseen|lang|login_attempts|anonymized/ } @columns; >+ @columns = grep { !/borrowernumber|branchcode|categorycode|^date|password|flags|updated_on|lastseen|lang|login_attempts|anonymized|auth_method/ } @columns; > push @columns, 'dateofbirth'; # add this date back in > foreach my $col (@columns) { > $self->_anonymize_column($col, $mandatory->{lc $col} ); >-- >2.30.2
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 30288
:
131648
|
131698
|
131704
|
131705
|
131765
|
133355
|
133510
|
133612
|
133613
|
133783