Bug 16960: Fix error on validating the registration

Followed steps in comment #14, works as expected.
Signed-off-by: Marc Véron <veron@veron.ch>

Signed-off-by: Katrin Fischer  <katrin.fischer@bsz-bw.de>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2016-08-08 13:46:43 +01:00 committed by Kyle M Hall
parent 5c2f4cc7e0
commit 7a33e3ba75

View file

@ -51,6 +51,11 @@ if ( $m ) {
OpacPasswordChange => C4::Context->preference('OpacPasswordChange') );
my $borrower = $m->unblessed();
# Avoid "Column 'column' cannot be null" errors
# FIXME should be done at the Koha::Object level
for my $key ( keys %$borrower ) {
delete $borrower->{$key} if not defined $borrower->{$key}
}
my $password;
( $borrowernumber, $password ) = AddMember_Opac(%$borrower);