From b6b6f06457c30959766bb62f834d5e66a039fe75 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 5 Apr 2024 07:29:40 +0000 Subject: [PATCH] Bug 36343: (QA follow-up) Adjust two other occurrences Signed-off-by: Marcel de Rooy Signed-off-by: Katrin Fischer --- Koha/Item.pm | 5 +++-- Koha/Patron.pm | 6 +++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Koha/Item.pm b/Koha/Item.pm index 0b571b5d9d..d9c89be3cd 100644 --- a/Koha/Item.pm +++ b/Koha/Item.pm @@ -2175,8 +2175,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 }, } ); } diff --git a/Koha/Patron.pm b/Koha/Patron.pm index 3778be7937..e322dfdad3 100644 --- a/Koha/Patron.pm +++ b/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. -- 2.39.5