From cbe96a3b70d88c9c2fd43c8b14dd7b6de1283a08 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 8 Aug 2016 14:14:03 +0100 Subject: [PATCH] Bug 17080: borrowers table - use default values defined in the DBIx::Class schema MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This patch basically just revert bug 16960 - Fix error on validating the registration This job is now done by the Koha::Object constructor, no need to clean the hash before sending it to AddMember. Test plan: Make sure there is no regression on bug 16960 (validate a self registration). Signed-off-by: Marc Véron Signed-off-by: Nick Clemens Signed-off-by: Kyle M Hall --- opac/opac-registration-verify.pl | 5 ----- 1 file changed, 5 deletions(-) diff --git a/opac/opac-registration-verify.pl b/opac/opac-registration-verify.pl index 20057b055a..1098af079f 100755 --- a/opac/opac-registration-verify.pl +++ b/opac/opac-registration-verify.pl @@ -51,11 +51,6 @@ 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.39.5