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:
parent
5c2f4cc7e0
commit
7a33e3ba75
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue