Lines 114-121
if ( $uploadborrowers && length($uploadborrowers) > 0 ) {
Link Here
|
114 |
my $handle = $input->upload('uploadborrowers'); |
114 |
my $handle = $input->upload('uploadborrowers'); |
115 |
my %defaults = $input->Vars; |
115 |
my %defaults = $input->Vars; |
116 |
my $overwrite_passwords = defined $input->param('overwrite_passwords') ? 1 : 0; |
116 |
my $overwrite_passwords = defined $input->param('overwrite_passwords') ? 1 : 0; |
117 |
my $update_dateexpiry = defined $input->param('update_dateexpiry') ? 1 : 0; |
117 |
my $update_dateexpiry = $input->param('update_dateexpiry'); |
118 |
my $update_dateexpiry_from_today = defined $input->param('update_dateexpiry_from_today') ? 1 : 0; |
|
|
119 |
my $return = $Import->import_patrons( |
118 |
my $return = $Import->import_patrons( |
120 |
{ |
119 |
{ |
121 |
file => $handle, |
120 |
file => $handle, |
Lines 125-132
if ( $uploadborrowers && length($uploadborrowers) > 0 ) {
Link Here
|
125 |
overwrite_passwords => $overwrite_passwords, |
124 |
overwrite_passwords => $overwrite_passwords, |
126 |
preserve_extended_attributes => scalar $input->param( 'ext_preserve' ) || 0, |
125 |
preserve_extended_attributes => scalar $input->param( 'ext_preserve' ) || 0, |
127 |
preserve_fields => \@preserve_fields, |
126 |
preserve_fields => \@preserve_fields, |
128 |
update_dateexpiry => $update_dateexpiry, |
127 |
update_dateexpiry => $update_dateexpiry ? 1 : 0, |
129 |
update_dateexpiry_from_today => $update_dateexpiry_from_today, |
128 |
update_dateexpiry_from_today => $update_dateexpiry eq "now" ? 1 : 0, |
130 |
send_welcome => $welcome_new, |
129 |
send_welcome => $welcome_new, |
131 |
} |
130 |
} |
132 |
); |
131 |
); |
133 |
- |
|
|