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

--- Comment #4 from Stefan Berndtsson <stefan.berndts...@ub.gu.se> ---
I can't say why all the others did it this way. My hooks were just copies of
the model used everywhere else.

I can reason about a situation where it will likely matter. If the plugin
forks/threads before doing its work, there is a chance that the originally
stored object has been changed after the hook is called, but before the plugin
has actually done its work. By fetching a new object, this is not the case.

I also do remember having seen a situation where the state of $self after store
was not the same as the newly fetched object, but I can't recall how or where
this was the case.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://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