Lines 84-94
elsif ( $op eq 'cud-add_validate' ) {
Link Here
|
84 |
|
84 |
|
85 |
my @branches = grep { $_ ne q{} } $input->multi_param('branches'); |
85 |
my @branches = grep { $_ ne q{} } $input->multi_param('branches'); |
86 |
my $can_be_guarantee = $input->param('can_be_guarantee'); |
86 |
my $can_be_guarantee = $input->param('can_be_guarantee'); |
|
|
87 |
my $force_password_reset_when_set_by_staff = $input->param('force_password_reset_when_set_by_staff'); |
87 |
|
88 |
|
88 |
$reset_password = undef if $reset_password eq -1; |
89 |
$reset_password = undef if $reset_password eq -1; |
89 |
$change_password = undef if $change_password eq -1; |
90 |
$change_password = undef if $change_password eq -1; |
90 |
$min_password_length = undef unless length($min_password_length); |
91 |
$min_password_length = undef unless length($min_password_length); |
91 |
$require_strong_password = undef if $require_strong_password eq -1; |
92 |
$require_strong_password = undef if $require_strong_password eq -1; |
|
|
93 |
$force_password_reset_when_set_by_staff = undef if $force_password_reset_when_set_by_staff eq -1; |
92 |
|
94 |
|
93 |
my $is_a_modif = $input->param("is_a_modif"); |
95 |
my $is_a_modif = $input->param("is_a_modif"); |
94 |
|
96 |
|
Lines 119-124
elsif ( $op eq 'cud-add_validate' ) {
Link Here
|
119 |
$category->noissuescharge($noissuescharge); |
121 |
$category->noissuescharge($noissuescharge); |
120 |
$category->noissueschargeguarantees($noissueschargeguarantees); |
122 |
$category->noissueschargeguarantees($noissueschargeguarantees); |
121 |
$category->noissueschargeguarantorswithguarantees($noissueschargeguarantorswithguarantees); |
123 |
$category->noissueschargeguarantorswithguarantees($noissueschargeguarantorswithguarantees); |
|
|
124 |
$category->force_password_reset_when_set_by_staff($force_password_reset_when_set_by_staff); |
122 |
eval { |
125 |
eval { |
123 |
$category->store; |
126 |
$category->store; |
124 |
$category->replace_library_limits( \@branches ); |
127 |
$category->replace_library_limits( \@branches ); |
Lines 157-162
elsif ( $op eq 'cud-add_validate' ) {
Link Here
|
157 |
noissuescharge => $noissuescharge, |
160 |
noissuescharge => $noissuescharge, |
158 |
noissueschargeguarantees => $noissueschargeguarantees, |
161 |
noissueschargeguarantees => $noissueschargeguarantees, |
159 |
noissueschargeguarantorswithguarantees => $noissueschargeguarantorswithguarantees, |
162 |
noissueschargeguarantorswithguarantees => $noissueschargeguarantorswithguarantees, |
|
|
163 |
force_password_reset_when_set_by_staff => $force_password_reset_when_set_by_staff, |
160 |
} |
164 |
} |
161 |
); |
165 |
); |
162 |
eval { |
166 |
eval { |