Bug 17080: borrowers table - use default values defined in the DBIx::Class schema

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 <veron@veron.ch>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2016-08-08 14:14:03 +01:00 committed by Kyle M Hall
parent 41a19f420d
commit cbe96a3b70
1 changed files with 0 additions and 5 deletions

View File

@ -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);