[Koha-bugs] [Bug 31894] Extend Hold hooks with more actions

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Oct 21 10:47:56 CEST 2022


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

--- Comment #4 from Stefan Berndtsson <stefan.berndtsson at 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.


More information about the Koha-bugs mailing list