[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:42:47 CET 2022


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

--- Comment #4 from Julian Maurice <julian.maurice at biblibre.com> ---
> 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.

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


More information about the Koha-bugs mailing list