Bug 33986

Summary: Patron privacy settings affecting statistics tab in patron account
Product: Koha Reporter: Christopher Brannon <cbrannon>
Component: PatronsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: gmcharlt, kyle.m.hall
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Christopher Brannon 2023-06-12 16:05:41 UTC
If a patron clears their history on the OPAC, is it supposed to be clearing the statistics page on the patron on the staff side?  This is generalized info, and it seems like one shouldn't have to do with the other?
Comment 1 Katrin Fischer 2023-06-12 17:12:24 UTC
It should only anonymize it / remove the borrowernumber.
Comment 2 Katrin Fischer 2023-06-12 17:12:43 UTC
Hm, maybe in some cases the Anon user's borrowernumber would be used, haven't checked.
Comment 3 Christopher Brannon 2023-06-12 17:18:51 UTC
I just tested this.  I checked out items with the privacy allowing history.  The patron stats tab showed the generalized transactions.  As soon as I cleared the data on the OPAC, the stats disappeared on the staff side.  This shouldn't be happening.  General stats on the patron record should not be related to patron privacy.
Comment 4 Katrin Fischer 2023-06-12 17:34:24 UTC
Ah ok, you talk about the statistics tab. The data there is not from a generalized table/counters. It's pulled as a summary from reading histories, so yes, the data is lost.
Comment 5 Christopher Brannon 2023-06-12 19:15:28 UTC
I'm thinking this should be changed somehow.  Doesn't seem right that this should disappear because of privacy settings, or am I wrong?
Comment 6 Katrin Fischer 2023-06-12 19:28:03 UTC
It would need to be completely rewritten.