Bugzilla – Attachment 106583 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 'checkin' action for _after_circ_actions
Bug-21468-Add-checkin-action-for-aftercircactions.patch (text/plain), 1.30 KB, created by
Martin Renvoize (ashimema)
on 2020-07-06 12:48:47 UTC
(
hide
)
Description:
Bug 21468: Add 'checkin' action for _after_circ_actions
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2020-07-06 12:48:47 UTC
Size:
1.30 KB
patch
obsolete
>From 33801d727302f0c8c5052de823b3f8e94456e62c Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Mon, 6 Jul 2020 13:46:47 +0100 >Subject: [PATCH] Bug 21468: Add 'checkin' action for _after_circ_actions > >--- > C4/Circulation.pm | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index b300471d9b..baa5cbfd93 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -2119,6 +2119,22 @@ sub AddReturn { > $messages->{'ResFound'} = $resrec; > } > >+ _after_circ_actions( >+ { >+ action => 'checkin', >+ payload => { >+ library_id => C4::Context->userenv->{'branch'}, >+ item_id => $item->itemnumber, >+ item_type => $item->effective_itemtype, >+ shelving_location => $item->location // q{}, >+ patron_id => $borrowernumber, >+ collection_code => $item->ccode // q{}, >+ date_returned => $return_date, >+ date_due => $issue ? $issue->date_due : q{} >+ } >+ } >+ ) if C4::Context->config("enable_plugins"); >+ > # Record the fact that this book was returned. > UpdateStats({ > branch => $branch, >-- >2.20.1
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