Re: [Koha-devel] Plugin hooks on datas and store()

2021-03-09 Thread Fridolin SOMERS
Yop I've tried with : sub after_item_action { my ( $self, $params ) = @_; warn "AFTER ITEM ACTION"; my $item = $params->{item}; $item->itemnotes("Edited at " . localtime); } Calling $item->SUPER::store() generates an error : Plugin error (Example Kitchen-Sink Plugin): Can't lo

Re: [Koha-devel] Plugin hooks on datas and store()

2021-03-09 Thread Renvoize, Martin
Indeed, I can't see calling SUPER working here.. and I can see the issue with calling a bare 'store' as you'd end up causing a recursion.. I initially wondered about setting an internal flag in the object that you could look for in the second call to the hook, but as get pass a new copy of the obj