From 4abc1a94e383d9f3a05e9128eab44a1c6629926d Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 8 Aug 2016 13:46:43 +0100 Subject: [PATCH] Bug 16960: Fix error on validating the registration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Followed steps in comment #14, works as expected. Signed-off-by: Marc VĂ©ron --- opac/opac-registration-verify.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/opac/opac-registration-verify.pl b/opac/opac-registration-verify.pl index 1098af0..20057b0 100755 --- a/opac/opac-registration-verify.pl +++ b/opac/opac-registration-verify.pl @@ -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); -- 2.1.4