[Koha-bugs] [Bug 26744] Log changes to extended patron attributes

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Mar 27 21:17:28 CET 2024


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26744

Lucas Gass <lucas at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #163958|0                           |1
        is obsolete|                            |

--- Comment #10 from Lucas Gass <lucas at bywatersolutions.com> ---
Created attachment 164034
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=164034&action=edit
Bug 26744: Log changes to extended patron attributes

Log non-repeatable attributes and only log changes and creations, not
deletions.
When changed, attributes are first all deleted, then the relevant ones are
recreated.
This patch catches all deletions, and checks against them in the creation
phase, logging
only the attributes that have changed (with before/after content). This makes
it impossible
to log actual deletions.

To test:

1) Ensure tests in  t/db_dependent/Koha/Patron/Attribute.t passes

Sponsored-by: Gothenburg University Library
Signed-off-by: Lucas Gass <lucas at bywatersolutions.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list