Bug 20429

Summary: Patron is told history is not deleted incorrectly on opac-privacy.pl
Product: Koha Reporter: Lucas Gass <lucas>
Component: OPACAssignee: 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
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

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 ***