Lines 93-101
elsif ( $op eq 'add_validate' ) {
Link Here
|
93 |
my $checkPrevCheckout = $input->param('checkprevcheckout'); |
93 |
my $checkPrevCheckout = $input->param('checkprevcheckout'); |
94 |
my $default_privacy = $input->param('default_privacy'); |
94 |
my $default_privacy = $input->param('default_privacy'); |
95 |
my $reset_password = $input->param('reset_password'); |
95 |
my $reset_password = $input->param('reset_password'); |
|
|
96 |
my $change_password = $input->param('change_password'); |
96 |
my @branches = grep { $_ ne q{} } $input->multi_param('branches'); |
97 |
my @branches = grep { $_ ne q{} } $input->multi_param('branches'); |
97 |
|
98 |
|
98 |
$reset_password = undef if $reset_password eq -1; |
99 |
$reset_password = undef if $reset_password eq -1; |
|
|
100 |
$change_password = undef if $change_password eq -1; |
99 |
|
101 |
|
100 |
my $is_a_modif = $input->param("is_a_modif"); |
102 |
my $is_a_modif = $input->param("is_a_modif"); |
101 |
|
103 |
|
Lines 126-131
elsif ( $op eq 'add_validate' ) {
Link Here
|
126 |
$category->checkprevcheckout($checkPrevCheckout); |
128 |
$category->checkprevcheckout($checkPrevCheckout); |
127 |
$category->default_privacy($default_privacy); |
129 |
$category->default_privacy($default_privacy); |
128 |
$category->reset_password($reset_password); |
130 |
$category->reset_password($reset_password); |
|
|
131 |
$category->change_password($change_password); |
129 |
eval { |
132 |
eval { |
130 |
$category->store; |
133 |
$category->store; |
131 |
$category->replace_branch_limitations( \@branches ); |
134 |
$category->replace_branch_limitations( \@branches ); |
Lines 153-158
elsif ( $op eq 'add_validate' ) {
Link Here
|
153 |
checkprevcheckout => $checkPrevCheckout, |
156 |
checkprevcheckout => $checkPrevCheckout, |
154 |
default_privacy => $default_privacy, |
157 |
default_privacy => $default_privacy, |
155 |
reset_password => $reset_password, |
158 |
reset_password => $reset_password, |
|
|
159 |
change_password => $change_password, |
156 |
}); |
160 |
}); |
157 |
eval { |
161 |
eval { |
158 |
$category->store; |
162 |
$category->store; |