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

(-)a/admin/categories.pl (+3 lines)
Lines 92-97 elsif ( $op eq 'add_validate' ) { Link Here
92
    my $BlockExpiredPatronOpacActions = $input->param('BlockExpiredPatronOpacActions');
92
    my $BlockExpiredPatronOpacActions = $input->param('BlockExpiredPatronOpacActions');
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 $can_reset_password = $input->param('can_reset_password');
95
    my @branches = grep { $_ ne q{} } $input->multi_param('branches');
96
    my @branches = grep { $_ ne q{} } $input->multi_param('branches');
96
97
97
    my $is_a_modif = $input->param("is_a_modif");
98
    my $is_a_modif = $input->param("is_a_modif");
Lines 122-127 elsif ( $op eq 'add_validate' ) { Link Here
122
        $category->BlockExpiredPatronOpacActions($BlockExpiredPatronOpacActions);
123
        $category->BlockExpiredPatronOpacActions($BlockExpiredPatronOpacActions);
123
        $category->checkprevcheckout($checkPrevCheckout);
124
        $category->checkprevcheckout($checkPrevCheckout);
124
        $category->default_privacy($default_privacy);
125
        $category->default_privacy($default_privacy);
126
        $category->can_reset_password($can_reset_password);
125
        eval {
127
        eval {
126
            $category->store;
128
            $category->store;
127
            $category->replace_branch_limitations( \@branches );
129
            $category->replace_branch_limitations( \@branches );
Lines 148-153 elsif ( $op eq 'add_validate' ) { Link Here
148
            BlockExpiredPatronOpacActions => $BlockExpiredPatronOpacActions,
150
            BlockExpiredPatronOpacActions => $BlockExpiredPatronOpacActions,
149
            checkprevcheckout => $checkPrevCheckout,
151
            checkprevcheckout => $checkPrevCheckout,
150
            default_privacy => $default_privacy,
152
            default_privacy => $default_privacy,
153
            can_reset_password => $can_reset_password,
151
        });
154
        });
152
        eval {
155
        eval {
153
            $category->store;
156
            $category->store;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt (-1 / +12 lines)
Lines 165-170 Link Here
165
                    <span>Select <i>All branches</i> if this category type must to be displayed all the time. Otherwise select libraries you want to associate with this value.
165
                    <span>Select <i>All branches</i> if this category type must to be displayed all the time. Otherwise select libraries you want to associate with this value.
166
                    </span>
166
                    </span>
167
                </li>
167
                </li>
168
                <li>
169
                    <label for="can_reset_password">Password reset in OPAC: </label>
170
                    <select name="can_reset_password" id="can_reset_password">
171
                        [% IF category.can_reset_password %]
172
                            <option value="0">Allowed</option>
173
                            <option value="1" selected="selected">Not allowed</option>
174
                        [% ELSE %]
175
                            <option value="0" selected="selected">Allowed</option>
176
                            <option value="1">Not allowed</option>
177
                        [% END %]
178
                    </select>
179
                </li>
168
                <li><label for="block_expired">Block expired patrons:</label>
180
                <li><label for="block_expired">Block expired patrons:</label>
169
                    <select name="BlockExpiredPatronOpacActions" id="block_expired">
181
                    <select name="BlockExpiredPatronOpacActions" id="block_expired">
170
                        [% IF not category or category.BlockExpiredPatronOpacActions == -1%]
182
                        [% IF not category or category.BlockExpiredPatronOpacActions == -1%]
171
- 

Return to bug 21890