From 0dd8e0dbd0163b1d96a560b467754c68ab3211b6 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 26 Mar 2015 09:30:11 +0100 Subject: [PATCH] Bug 5002: Show all patron categories after insert + wording changes. How I tested: - edit an existing patron category - save the change - redirect is to the categories table - it shows all categories OK - wording OK as well Signed-off-by: Marc Veron Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- admin/categorie.pl | 2 +- .../intranet-tmpl/prog/en/modules/admin/categorie.tt | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/admin/categorie.pl b/admin/categorie.pl index 60d2c84154..bb0b72eeef 100755 --- a/admin/categorie.pl +++ b/admin/categorie.pl @@ -257,7 +257,6 @@ elsif ( $op eq 'add_validate' ) { if ( $inserted ) { push @messages, { type => 'message', code => 'success_on_insert' }; } else { - $searchfield = q||; push @messages, { type => 'error', code => 'error_on_insert' }; } } @@ -267,6 +266,7 @@ elsif ( $op eq 'add_validate' ) { { categorycode => $input->param('categorycode') }, $template ); } + $searchfield = q||; $op = 'list'; # END $OP eq ADD_VALIDATE diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tt index 281d24ae68..769a0bc787 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tt @@ -111,13 +111,13 @@
[% 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 %] -- 2.39.5