Bug 20363: (bug 16966 follow-up) better messages handling
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 23 Mar 2018 16:58:24 +0000 (13:58 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 23 Apr 2018 17:22:16 +0000 (14:22 -0300)
commit0a49e3bf92ae3fa4b03067199d1e860f1fe0b274
tree79084ef5884312d2deace8c1498644d234cb653a
parent2edc7a2240dc7772ab2c778364416667fd21da5a
Bug 20363: (bug 16966 follow-up) better messages handling

User views the "Your privacy" -page, it shows "No reading history to
delete", even when the user has history.

Test plan:
- Turn OPACPrivacy on
- Go to opac-privacy.pl
- Click the "Immediate deletion button" to delete the reading history
=> If the patron has reading history you must get "Your reading history has been deleted."
Otherwise "No reading history to delete"

Note that this patch reintroduce the "something went wrong" message if
the deletion failed for whatever reason.

Signed-off-by: David Bourgault <david.bourgault@inlibro.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-privacy.tt
opac/opac-privacy.pl