Koha-clms/Koha/Patron
Stefan Berndtsson af6f6331c4
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@bywatersolutions.com>
Signed-off-by: Clemens Tubach <clemens.tubach@kit.edu>
Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2025-03-10 11:42:31 +01:00
..
Attribute Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
MessagePreference Bug 17499: (follow-up) Rename to Koha::Patron::MessagePreference 2023-09-12 10:16:11 -03:00
Password Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Restriction Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Attribute.pm Bug 26744: Log changes to extended patron attributes 2025-03-10 11:42:31 +01:00
Attributes.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Categories.pm
…
Category.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Consent.pm
…
Consents.pm Bug 31503: (follow-up) Use KohaPlugins.feature_enabled 2023-10-25 10:35:23 -03:00
Debarments.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Discharge.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Files.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
HouseboundProfile.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
HouseboundProfiles.pm
…
HouseboundRole.pm
…
HouseboundRoles.pm
…
HouseboundVisit.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
HouseboundVisits.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Image.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Images.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Message.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
MessagePreference.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
MessagePreferences.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Messages.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Modification.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Modifications.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Relationship.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Relationships.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Restriction.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Restrictions.pm Bug 31095: (QA follow-up) Fix POD 2023-01-31 10:19:42 -03:00