Prior to this patch there is a regression in the LDAP replication
functionality such that clearing a field become impossible. This patch
restores that functionality.
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
my @columns = Koha::Patrons->columns;
my $patron = Koha::Patron->new(
{
- map { defined( $borrower{$_} ) ? ( $_ => $borrower{$_} ) : () } @columns
+ map { exists( $borrower{$_} ) ? ( $_ => $borrower{$_} ) : () } @columns
}
)->store;
die "Insert of new patron failed" unless $patron;