| Summary: | Patron is told history is not deleted incorrectly on opac-privacy.pl | ||
|---|---|---|---|
| Product: | Koha | Reporter: | Lucas Gass (lukeg) <lucas> |
| Component: | OPAC | Assignee: | Owen Leonard <oleonard> |
| Status: | RESOLVED DUPLICATE | QA Contact: | Testopia <testopia> |
| Severity: | normal | ||
| Priority: | P5 - low | CC: | jonathan.druart |
| Version: | Main | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: | https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20363 | ||
| GIT URL: | Initiative type: | --- | |
| Sponsorship status: | --- | Comma delimited list of Sponsors: | |
| Crowdfunding goal: | 0 | Patch complexity: | --- |
| Documentation contact: | Documentation submission: | ||
| Text to go in the release notes: | Version(s) released in: | ||
| Circulation function: | |||
The opac-privacy.pl (privacy tab) displays either "Your reading history has been deleted" OR "NO reading history to delete". This is true even if the user has a reading history and hasn't deleted it. There should be a 3rd case where the display <span> class is hidden. Here is the code from the opac-privacy.tt file: <div id="userprivacy"> <h3>Your privacy management</h3> [% IF deleted %] <div class="alert alert-success">Your reading history has been deleted.</div> [% ELSE %] <div class="alert">No reading history to delete</div> [% END %] A 3rd clause that checks if there is a reading history or not and then hides the display if there is should be added.