https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40850 --- Comment #2 from Tomás Cohen Arazi (tcohen) <tomascohen@gmail.com> --- Created attachment 186735 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=186735&action=edit Bug 40850: (follow-up) Use add_or_update_attributes in copyright clearance methods This patch simplifies the set_copyright_clearance_confirmed() method to use the new add_or_update_attributes() method instead of custom update/create logic. Benefits: - Reduces code complexity from 20+ lines to 6 lines - Eliminates duplicate update/create logic - Uses the new standardized method for attribute management - Maintains all existing functionality and test coverage Test plan: 1. Apply patch 2. Run: $ ktd --shell k$ prove t/db_dependent/Koha/ILL/Request.t => SUCCESS: Tests pass! Copyright clearance methods work with new implementation 3. Test copyright clearance workflow still works in ILL module 4. Sign off :-D -- You are receiving this mail because: You are watching all bug changes.