Bug 41244 - Logging patron attributes logs two entries everytime a new patron account (with extended attribute values) is created
Summary: Logging patron attributes logs two entries everytime a new patron account (wi...
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Patrons (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on: 26744
Blocks:
  Show dependency treegraph
 
Reported: 2025-11-13 05:06 UTC by Alex Buckley
Modified: 2025-11-19 00:35 UTC (History)
3 users (show)

See Also:
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:


Attachments
Two action log entries when creatng a patron account (38.37 KB, image/png)
2025-11-13 05:06 UTC, Alex Buckley
Details
Two logs when editing a patron - one for borrowers table, one for attributes (38.42 KB, image/png)
2025-11-19 00:35 UTC, Nick Clemens (kidclamp)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Buckley 2025-11-13 05:06:56 UTC
Created attachment 189528 [details]
Two action log entries when creatng a patron account

When you create a new patron account (with extended attribute values included) - and the borrowersLog syspref enabled - two log entries are generated:

- a Create action
- a Modify action  

(See attached screenshot).

This happens when you use the 'Import patron' tool or manually create a new patron in the staff client.

Surely, only the create log entry should be generated.
Comment 1 Nick Clemens (kidclamp) 2025-11-19 00:35:55 UTC
Created attachment 189690 [details]
Two logs when editing a patron - one for borrowers table, one for attributes

It seems this is true for editing a patron as well - they are different objects/tables, so I understand why we have two.