[Koha-bugs] [Bug 32107] Send $self to Plugins->call and call discard_changes inside

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Nov 4 10:45:43 CET 2022


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

--- Comment #5 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
(In reply to Julian Maurice from comment #4)
> > Yes, I appreciate that principle. But the problem is that we are inserting
> > more and more calls to Plugins->call and that we are loosing consistency. So
> > we are looking for a balance here..
> 
> Maybe adding a "wrapper subroutine" around `call` would work ? It would keep
> the `call` subroutine simple and data-agnostic while removing the
> boilerplate eventually needed everywhere Koha::Objects are passed to plugins.

Good idea.

-- 
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