if ( $inserted ) {
push @messages, { type => 'message', code => 'success_on_insert' };
} else {
- $searchfield = q||;
push @messages, { type => 'error', code => 'error_on_insert' };
}
}
{ categorycode => $input->param('categorycode') }, $template );
}
+ $searchfield = q||;
$op = 'list';
# END $OP eq ADD_VALIDATE
<div class="dialog [% m.type %]">
[% SWITCH m.code %]
[% CASE 'error_on_insert' %]
- An error occurred when inserting this patron category. Perhaps the category code already exists.
+ An error occurred when inserting this patron category. The patron category might already exist.
[% CASE 'error_on_delete' %]
- An error occurred when deleteing this patron category. Check the logs.
+ An error occurred when deleting this patron category. Check the logs.
[% CASE 'success_on_insert' %]
- Patron category inserted with success.
+ Patron category added successfully
[% CASE 'success_on_delete' %]
- Patron category deleted with success.
+ Patron category deleted successfully.
[% CASE %]
[% m.code %]
[% END %]