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

(-)a/admin/categorie.pl (-1 / +1 lines)
Lines 257-263 elsif ( $op eq 'add_validate' ) { Link Here
257
        if ( $inserted ) {
257
        if ( $inserted ) {
258
            push @messages, { type => 'message', code => 'success_on_insert' };
258
            push @messages, { type => 'message', code => 'success_on_insert' };
259
        } else {
259
        } else {
260
            $searchfield = q||;
261
            push @messages, { type => 'error', code => 'error_on_insert' };
260
            push @messages, { type => 'error', code => 'error_on_insert' };
262
        }
261
        }
263
    }
262
    }
Lines 267-272 elsif ( $op eq 'add_validate' ) { Link Here
267
            { categorycode => $input->param('categorycode') }, $template );
266
            { categorycode => $input->param('categorycode') }, $template );
268
    }
267
    }
269
268
269
    $searchfield = q||;
270
    $op = 'list';
270
    $op = 'list';
271
271
272
    # END $OP eq ADD_VALIDATE
272
    # END $OP eq ADD_VALIDATE
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tt (-5 / +4 lines)
Lines 111-123 Link Here
111
    <div class="dialog [% m.type %]">
111
    <div class="dialog [% m.type %]">
112
        [% SWITCH m.code %]
112
        [% SWITCH m.code %]
113
        [% CASE 'error_on_insert' %]
113
        [% CASE 'error_on_insert' %]
114
            An error occurred when inserting this patron category. Perhaps the category code already exists.
114
            An error occurred when inserting this patron category. The patron category might already exist.
115
        [% CASE 'error_on_delete' %]
115
        [% CASE 'error_on_delete' %]
116
            An error occurred when deleteing this patron category. Check the logs.
116
            An error occurred when deleting this patron category. Check the logs.
117
        [% CASE 'success_on_insert' %]
117
        [% CASE 'success_on_insert' %]
118
            Patron category inserted with success.
118
            Patron category added successfully
119
        [% CASE 'success_on_delete' %]
119
        [% CASE 'success_on_delete' %]
120
            Patron category deleted with success.
120
            Patron category deleted successfully.
121
        [% CASE %]
121
        [% CASE %]
122
            [% m.code %]
122
            [% m.code %]
123
        [% END %]
123
        [% END %]
124
- 

Return to bug 5002