From 7a33e3ba75cdfdf60e3c1403ecc542f084ffc851 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=utf8 Content-Transfer-Encoding: 8bit Followed steps in comment #14, works as expected. Signed-off-by: Marc Véron Signed-off-by: Katrin Fischer Signed-off-by: Kyle M Hall --- 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 1098af079f..20057b055a 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.20.1