Lines 749-754
sub AddMember {
Link Here
|
749 |
: $patron_category->default_privacy() eq 'never' ? 2 |
749 |
: $patron_category->default_privacy() eq 'never' ? 2 |
750 |
: $patron_category->default_privacy() eq 'forever' ? 0 |
750 |
: $patron_category->default_privacy() eq 'forever' ? 0 |
751 |
: undef; |
751 |
: undef; |
|
|
752 |
|
753 |
$data{'privacy_guarantor_checkouts'} = 0 unless defined( $data{'privacy_guarantor_checkouts'} ); |
754 |
|
752 |
# Make a copy of the plain text password for later use |
755 |
# Make a copy of the plain text password for later use |
753 |
my $plain_text_password = $data{'password'}; |
756 |
my $plain_text_password = $data{'password'}; |
754 |
|
757 |
|
Lines 756-763
sub AddMember {
Link Here
|
756 |
$data{'password'} = ($data{'password'})? hash_password($data{'password'}) : '!'; |
759 |
$data{'password'} = ($data{'password'})? hash_password($data{'password'}) : '!'; |
757 |
|
760 |
|
758 |
# we don't want invalid dates in the db (mysql has a bad habit of inserting 0000-00-00 |
761 |
# we don't want invalid dates in the db (mysql has a bad habit of inserting 0000-00-00 |
759 |
$data{'dateofbirth'} = undef if( not $data{'dateofbirth'} ); |
762 |
$data{'dateofbirth'} = undef if ( not $data{'dateofbirth'} ); |
760 |
$data{'debarred'} = undef if ( not $data{'debarred'} ); |
763 |
$data{'debarred'} = undef if ( not $data{'debarred'} ); |
|
|
764 |
$data{'sms_provider_id'} = undef if ( not $data{'sms_provider_id'} ); |
761 |
|
765 |
|
762 |
# get only the columns of Borrower |
766 |
# get only the columns of Borrower |
763 |
my @columns = $schema->source('Borrower')->columns; |
767 |
my @columns = $schema->source('Borrower')->columns; |
764 |
- |
|
|