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>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit c9fa30a55b)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
ba28ac67c2
commit
b100fb1609
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue