Bug 5002: Display messages on adding/deleting patron category
authorJonathan Druart <jonathan.druart@biblibre.com>
Tue, 24 Mar 2015 11:35:56 +0000 (12:35 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 31 Mar 2015 13:11:13 +0000 (10:11 -0300)
commit886d02d8b705ecbea35d5e390d59f225c0a4f44b
treee63096f453f26ebf5b1816b63ad89662793150b7
parent7fa67b2f83f418df0923caaeec444b6a8f728b21
Bug 5002: Display messages on adding/deleting patron category

There are no messages on adding and deleting patron category.
If an error occurs and the data is not inserted, the interface does not
alert the user.

This patch adds a message block to alert the user if something wrong
happened.

Test plan:
1/ Create a patron category PATCAT. You should get a confirmation
message.
2/ Try to create another patron category with the same code. You should
get an error message
3/ Delete the patron category PATCAT. You should get a confirmation
message.

Confirm there is no regression on this form (try update an existing
patron category too).

Followed test plan, works as expected.
Signed-off-by: Marc Veron <veron@veron.ch>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
admin/categorie.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tt