Bug 39625 - Interface logs incorrectly to statistics table when renewing
Summary: Interface logs incorrectly to statistics table when renewing
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Staff interface (show other bugs)
Version: 24.05
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-14 11:03 UTC by Anneli Österman
Modified: 2025-05-28 14:26 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anneli Österman 2025-04-14 11:03:03 UTC
We have a problem that interface logs incorrectly to statistics when renewing. It seems to log a random interface (intranet, opac, api, sip). Often renewal which is made in staff interface is logged as done via api.

How to recreate:
1. Search for a patron with renewable checkouts
2. Renew one of patron's items by checkin it in Renew column and selecting then Renew selected items
3. Check the statistics table which interface is recorded SELECT * FROM statistics WHERE borrowernumber=xxx AND type='renew' ORDER BY 1 DESC
4. Repeat 2-3 few times

I cannot recreate this problem in a sandbox but maybe that is because I'm there alone? We are currently using version 24.05.01 (with newer security updates).

We found some bugs related to this one but they all were closed as fixed about  two years ago so maybe this is something else?
Comment 1 Anneli Österman 2025-04-14 11:45:24 UTC
I tested some more and this happened to my test patron when I first renewed via staff client, then via api (Finna web library) and then again via staff client. The first staff client renewal was logged as "intranet" and the latter as "api".

Another notice. The interface is logged incorrectly also to action_logs table in my tests when this happens.