@@ -, +, @@ --- Koha/Item.pm | 5 +++-- Koha/Patron.pm | 6 +++++- 2 files changed, 8 insertions(+), 3 deletions(-) --- a/Koha/Item.pm +++ a/Koha/Item.pm @@ -2016,8 +2016,9 @@ sub _after_item_action_hooks { 'after_item_action', { action => $action, - item => $self, - item_id => $self->itemnumber, + item => $self, #FIXME To be deprecated + item_id => $self->itemnumber, #FIXME To be deprecated + payload => { item => $self, item_id => $self->itemnumber }, } ); } --- a/Koha/Patron.pm +++ a/Koha/Patron.pm @@ -2062,7 +2062,11 @@ sub has_valid_userid { sub generate_userid { my ( $self ) = @_; my @responses = Koha::Plugins->call( - 'patron_generate_userid', { patron => $self }, + 'patron_generate_userid', + { + patron => $self, #FIXME To be deprecated + payload => { patron => $self }, + }, ); unless( @responses ) { # Empty list only possible when there are NO enabled plugins for this method. --