[Koha-bugs] [Bug 22741] Koha/Patrons.t is failing randomly on test BorrowerLogs and TrackLastPatronActivity

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jun 20 16:44:17 CEST 2019


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

--- Comment #19 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Wow.. this is a fun one..

The updated_on field is updated by a DB level trigger, but our Koha::Object
store routine does not return freshly populated Koha::Object data (it uses
update_or_insert which only updates the specified fields and does not
repopulate from the database).

So, in the Koha::Patron->store routine, where we build the actionlogs info we
do a comparison between a freshly fetch row from the DB and the cached object
data.. if this call to store happens to bridge a 1s boundary we spot a
difference between whats in the updated_on in the Koha::Patron object and
what's in the database row and record it as a change triggering an actionlog.

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


More information about the Koha-bugs mailing list