Bugzilla – Attachment 164455 Details for
Bug 36343
The 'after_biblio_action' hooks have an inconsistent signature compared to before_biblio_action, and actions in reserves and items
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36343: Add support for 'payload' to _after_biblio_action
Bug-36343-Add-support-for-payload-to-afterbiblioac.patch (text/plain), 1.57 KB, created by
Marcel de Rooy
on 2024-04-05 07:34:02 UTC
(
hide
)
Description:
Bug 36343: Add support for 'payload' to _after_biblio_action
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2024-04-05 07:34:02 UTC
Size:
1.57 KB
patch
obsolete
>From c19f37509e0f847242eb575dd9f0d294352a86c5 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >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=utf-8 >Content-Transfer-Encoding: 8bit >Content-Type: text/plain; charset=utf-8 > >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 <f.demians@tamil.fr> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > C4/Biblio.pm | 9 +++++++-- > 1 file changed, 7 insertions(+), 2 deletions(-) > >diff --git a/C4/Biblio.pm b/C4/Biblio.pm >index 0fd56741d4..89dd8ed9fa 100644 >--- a/C4/Biblio.pm >+++ b/C4/Biblio.pm >@@ -3202,7 +3202,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{}; >@@ -3211,7 +3211,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.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 36343
:
163328
|
163768
| 164455 |
164456
|
164910