Bug 41244

Summary: Logging patron attributes logs two entries everytime a new patron account (with extended attribute values) is created
Product: Koha Reporter: Alex Buckley <alexbuckley>
Component: PatronsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: gmcharlt, kyle, nick
Version: Main   
Hardware: All   
OS: All   
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:
Bug Depends on: 26744    
Bug Blocks:    
Attachments: Two action log entries when creatng a patron account
Two logs when editing a patron - one for borrowers table, one for attributes

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.