Bugzilla – Attachment 107262 Details for
Bug 21468
Plugins need hooks for checkin and checkout actions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21468: Add 'checkout' action for _after_circ_actions
Bug-21468-Add-checkout-action-for-aftercircactions.patch (text/plain), 1.70 KB, created by
Tomás Cohen Arazi (tcohen)
on 2020-07-23 14:57:12 UTC
(
hide
)
Description:
Bug 21468: Add 'checkout' action for _after_circ_actions
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2020-07-23 14:57:12 UTC
Size:
1.70 KB
patch
obsolete
>From db3385ea9fe5c04e90b66d4eca54ffff0eef5fcc Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Mon, 6 Jul 2020 09:44:11 +0100 >Subject: [PATCH] Bug 21468: Add 'checkout' action for _after_circ_actions > >This patch adds a call to _after_circ_actions into AddIssue and passes >an appropriate payload for plugins to utilise after issuing items. > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > C4/Circulation.pm | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index 50bba18e81..0ce4af96aa 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -1509,6 +1509,23 @@ sub AddIssue { > } > } > >+ _after_circ_actions( >+ { >+ action => 'checkout', >+ payload => { >+ type => ( $onsite_checkout ? 'onsite_checkout' : 'issue' ), >+ library_id => C4::Context->userenv->{'branch'}, >+ charge => $charge, >+ item_id => $item_object->itemnumber, >+ item_type => $item_object->effective_itemtype, >+ shelving_location => $item_object->location // q{}, >+ patron_id => $borrower->{'borrowernumber'}, >+ collection_code => $item_object->ccode // q{}, >+ date_due => $datedue >+ } >+ } >+ ) if C4::Context->config("enable_plugins"); >+ > # Record the fact that this book was issued. > &UpdateStats( > { >-- >2.27.0
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 21468
:
106571
|
106572
|
106573
|
106574
|
106580
|
106581
|
106582
|
106583
|
106883
|
106884
|
106885
|
106886
|
106887
|
107261
| 107262 |
107263
|
107264
|
107265
|
107266