View | Details | Raw Unified | Return to bug 40824
Collapse All | Expand All

(-)a/admin/categories.pl (+4 lines)
Lines 76-81 if ( $op eq 'add_form' ) { Link Here
76
    my $exclude_from_local_holds_priority      = $input->param('exclude_from_local_holds_priority');
76
    my $exclude_from_local_holds_priority      = $input->param('exclude_from_local_holds_priority');
77
    my $min_password_length                    = $input->param('min_password_length');
77
    my $min_password_length                    = $input->param('min_password_length');
78
    my $require_strong_password                = $input->param('require_strong_password');
78
    my $require_strong_password                = $input->param('require_strong_password');
79
    my $password_history_count                 = $input->param('password_history_count');
79
    my $noissuescharge                         = $input->param('noissuescharge')                         || undef;
80
    my $noissuescharge                         = $input->param('noissuescharge')                         || undef;
80
    my $noissueschargeguarantees               = $input->param('noissueschargeguarantees')               || undef;
81
    my $noissueschargeguarantees               = $input->param('noissueschargeguarantees')               || undef;
81
    my $noissueschargeguarantorswithguarantees = $input->param('noissueschargeguarantorswithguarantees') || undef;
82
    my $noissueschargeguarantorswithguarantees = $input->param('noissueschargeguarantorswithguarantees') || undef;
Lines 88-93 if ( $op eq 'add_form' ) { Link Here
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);
92
    $password_history_count                 = $password_history_count ? int($password_history_count) : undef;
91
    $require_strong_password                = undef if $require_strong_password eq -1;
93
    $require_strong_password                = undef if $require_strong_password eq -1;
92
    $force_password_reset_when_set_by_staff = undef if $force_password_reset_when_set_by_staff eq -1;
94
    $force_password_reset_when_set_by_staff = undef if $force_password_reset_when_set_by_staff eq -1;
93
95
Lines 117-122 if ( $op eq 'add_form' ) { Link Here
117
        $category->exclude_from_local_holds_priority($exclude_from_local_holds_priority);
119
        $category->exclude_from_local_holds_priority($exclude_from_local_holds_priority);
118
        $category->min_password_length($min_password_length);
120
        $category->min_password_length($min_password_length);
119
        $category->require_strong_password($require_strong_password);
121
        $category->require_strong_password($require_strong_password);
122
        $category->password_history_count($password_history_count);
120
        $category->noissuescharge($noissuescharge);
123
        $category->noissuescharge($noissuescharge);
121
        $category->noissueschargeguarantees($noissueschargeguarantees);
124
        $category->noissueschargeguarantees($noissueschargeguarantees);
122
        $category->noissueschargeguarantorswithguarantees($noissueschargeguarantorswithguarantees);
125
        $category->noissueschargeguarantorswithguarantees($noissueschargeguarantorswithguarantees);
Lines 156-161 if ( $op eq 'add_form' ) { Link Here
156
                exclude_from_local_holds_priority      => $exclude_from_local_holds_priority,
159
                exclude_from_local_holds_priority      => $exclude_from_local_holds_priority,
157
                min_password_length                    => $min_password_length,
160
                min_password_length                    => $min_password_length,
158
                require_strong_password                => $require_strong_password,
161
                require_strong_password                => $require_strong_password,
162
                password_history_count                 => $password_history_count,
159
                noissuescharge                         => $noissuescharge,
163
                noissuescharge                         => $noissuescharge,
160
                noissueschargeguarantees               => $noissueschargeguarantees,
164
                noissueschargeguarantees               => $noissueschargeguarantees,
161
                noissueschargeguarantorswithguarantees => $noissueschargeguarantorswithguarantees,
165
                noissueschargeguarantorswithguarantees => $noissueschargeguarantorswithguarantees,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt (-1 / +5 lines)
Lines 309-314 Link Here
309
                        <input id="min_password_length" type="text" inputmode="numeric" name="min_password_length" value="[% category.min_password_length | html %]" />
309
                        <input id="min_password_length" type="text" inputmode="numeric" name="min_password_length" value="[% category.min_password_length | html %]" />
310
                        <div class="hint">Leave blank to use system default ([% Koha.Preference('minPasswordLength') | html %])</div>
310
                        <div class="hint">Leave blank to use system default ([% Koha.Preference('minPasswordLength') | html %])</div>
311
                    </li>
311
                    </li>
312
                    <li>
313
                        <label for="password_history_count">Password history count:</label>
314
                        <input id="password_history_count" type="text" inputmode="numeric" name="password_history_count" value="[% category.password_history_count | html %]" />
315
                        <div class="hint">Leave blank to use system default ([% Koha.Preference('PasswordHistoryCount') | html %])</div>
316
                    </li>
312
                    <li class="pwd_setting_wrapper">
317
                    <li class="pwd_setting_wrapper">
313
                        <label for="require_strong_password">Require strong password:</label>
318
                        <label for="require_strong_password">Require strong password:</label>
314
                        <select id="require_strong_password" name="require_strong_password">
319
                        <select id="require_strong_password" name="require_strong_password">
315
- 

Return to bug 40824