From 55fce66a3f141ec31016974ca163ed35c795595f Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 18 Mar 2024 13:36:11 +0000 Subject: [PATCH] Bug 36343: Add support for 'payload' to _after_biblio_action MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This patch adds support for the payload key into the _after_bilio_action plugin hook wrapper routine. This brings it more inline with how these 'action hooks' appear in Holds and circulation. Signed-off-by: Frédéric Demians Signed-off-by: Marcel de Rooy Signed-off-by: Katrin Fischer --- C4/Biblio.pm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/C4/Biblio.pm b/C4/Biblio.pm index 78170ac5f2..4455262b7e 100644 --- a/C4/Biblio.pm +++ b/C4/Biblio.pm @@ -3205,7 +3205,7 @@ Helper method that takes care of calling all plugin hooks =cut sub _after_biblio_action_hooks { - my ( $args ) = @_; + my ($args) = @_; my $biblio_id = $args->{biblio_id}; my $action = $args->{action} // q{}; @@ -3214,7 +3214,12 @@ sub _after_biblio_action_hooks { Koha::Plugins->call( 'after_biblio_action', { - action => $action, + action => $action, + payload => { + biblio => $biblio, + biblio_id => $biblio_id, + }, + # NOTE: Deprecate these duplicate params for 24.11.00 biblio => $biblio, biblio_id => $biblio_id, } -- 2.39.5