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

--- Comment #19 from Martin Renvoize <martin.renvo...@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.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to