@@ -, +, @@ --- C4/Auth_with_ldap.pm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) --- a/C4/Auth_with_ldap.pm +++ a/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; --