Bugzilla – Attachment 88194 Details for
Bug 22461
Regression in #20287: LDAP user replication broken with mapped extended patron attributes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22461: Clarify and correct the hash reduction
Bug-22461-Clarify-and-correct-the-hash-reduction.patch (text/plain), 1.32 KB, created by
Alex Arnaud
on 2019-04-17 13:11:13 UTC
(
hide
)
Description:
Bug 22461: Clarify and correct the hash reduction
Filename:
MIME Type:
Creator:
Alex Arnaud
Created:
2019-04-17 13:11:13 UTC
Size:
1.32 KB
patch
obsolete
>From d6f5b67da29ba74ff5dce90edc787f848a12b128 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Wed, 10 Apr 2019 14:39:40 +0100 >Subject: [PATCH] Bug 22461: Clarify and correct the hash reduction > >There were a couple of bugs in the previous patch which meant it wasn't >working as intended. This patch corrects those bugs and simplifies the >code a little along the way. > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Signed-off-by: Alex Arnaud <alex.arnaud@biblibre.com> >--- > C4/Auth_with_ldap.pm | 8 +++----- > 1 file changed, 3 insertions(+), 5 deletions(-) > >diff --git a/C4/Auth_with_ldap.pm b/C4/Auth_with_ldap.pm >index 6def54d..589dbcc 100644 >--- a/C4/Auth_with_ldap.pm >+++ b/C4/Auth_with_ldap.pm >@@ -223,11 +223,9 @@ sub checkpw_ldap { > } elsif ($config{replicate}) { # A2, C2 > my @columns = Koha::Patrons->columns; > my $patron = Koha::Patron->new( >- map { >- grep join( ' ', @columns ) =~ /$_/ >- ? ( $_ => $data{$_} ) >- : () >- } keys %borrower >+ { >+ map { defined( $borrower{$_} ) ? ( $_ => $borrower{$_} ) : () } @columns >+ } > )->store; > die "Insert of new patron failed" unless $patron; > $borrowernumber = $patron->borrowernumber; >-- >2.7.4
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 22461
:
86696
|
86697
|
86856
|
87721
|
87722
|
87723
|
88192
|
88193
| 88194 |
88921