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