Bug 20429 - Patron is told history is not deleted incorrectly on opac-privacy.pl
Summary: Patron is told history is not deleted incorrectly on opac-privacy.pl
Status: RESOLVED DUPLICATE of bug 20363
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: master
Hardware: All All
: P5 - low normal (vote)
Assignee: Owen Leonard
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-15 18:16 UTC by Lucas Gass
Modified: 2018-03-23 17:03 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lucas Gass 2018-03-15 18:16:31 UTC
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.
Comment 1 Jonathan Druart 2018-03-23 17:03:44 UTC

*** This bug has been marked as a duplicate of bug 20363 ***