Bugzilla – Attachment 114907 Details for
Bug 23971
Add logging for basket related actions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23971: (follow-up) Add additional basket logging
Bug-23971-follow-up-Add-additional-basket-logging.patch (text/plain), 4.05 KB, created by
Andrew Isherwood
on 2021-01-07 11:34:34 UTC
(
hide
)
Description:
Bug 23971: (follow-up) Add additional basket logging
Filename:
MIME Type:
Creator:
Andrew Isherwood
Created:
2021-01-07 11:34:34 UTC
Size:
4.05 KB
patch
obsolete
>From 2a544302825491f264a05d810c1e2cb65ccd79f7 Mon Sep 17 00:00:00 2001 >From: Andrew Isherwood <andrew.isherwood@ptfs-europe.com> >Date: Fri, 6 Dec 2019 11:35:00 +0000 >Subject: [PATCH] Bug 23971: (follow-up) Add additional basket logging > >This patch adds additional basket logging as discussed in comment #14 > >- Basket reopening >- Basket users (manager) modification >- Basket header modification > >Signed-off-by: Holly <hc@interleaf.ie> >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > C4/Acquisition.pm | 29 +++++++++++++++++++ > .../prog/en/modules/tools/viewlog.tt | 5 +++- > 2 files changed, 33 insertions(+), 1 deletion(-) > >diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm >index e03474a8e7..bd5c307eef 100644 >--- a/C4/Acquisition.pm >+++ b/C4/Acquisition.pm >@@ -232,6 +232,15 @@ sub ReopenBasket { > WHERE basketno = ? > AND orderstatus NOT IN ( 'complete', 'cancelled' ) > }, {}, $basketno); >+ >+ # Log the basket reopening >+ if (C4::Context->preference("AcqLog")) { >+ logaction( >+ 'ACQUISITIONS', >+ 'REOPEN_BASKET', >+ $basketno >+ ); >+ } > return; > } > >@@ -574,6 +583,16 @@ sub ModBasketHeader { > $sth2->execute($contractnumber,$basketno); > } > >+ # Log the basket update >+ if (C4::Context->preference("AcqLog")) { >+ logaction( >+ 'ACQUISITIONS', >+ 'MODIFY_BASKET_HEADER', >+ $basketno >+ ); >+ } >+ >+ return; > return; > } > >@@ -754,6 +773,16 @@ sub ModBasketUsers { > foreach my $basketuser_id (@basketusers_ids) { > $sth->execute($basketno, $basketuser_id); > } >+ >+ # Log the basket update >+ if (C4::Context->preference("AcqLog")) { >+ logaction( >+ 'ACQUISITIONS', >+ 'MODIFY_BASKET_USERS', >+ $basketno >+ ); >+ } >+ > return; > } > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt >index 09b923ca49..be9bc62b38 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt >@@ -118,8 +118,11 @@ > [% CASE 'PATRON_NOTICE' %]ILL notice sent to patron > [% CASE 'ADD_BASKET' %]Create an acquisitions basket > [% CASE 'MODIFY_BASKET' %]Modify an acquisitions basket >+[% CASE 'MODIFY_BASKET_HEADER' %]Modify an acquisitions basket header >+[% CASE 'MODIFY_BASKET_USERS' %]Modify an acquisitions basket's users > [% CASE 'CLOSE_BASKET' %]Close an acquisitions basket > [% CASE 'APPROVE_BASKET' %]Approve an acquisitions basket >+[% CASE 'REOPEN_BASKET' %]Reopen an acquisitions basket > [% CASE 'Run' %]Run > [% CASE %][% action | html %] > [% END %] >@@ -194,7 +197,7 @@ > <label for="actionALL" class="viewlog"><input type="checkbox" id="actionALL" name="actions" value=""> All</label> > [% END %] > >- [% FOREACH actx IN [ 'ADD' 'DELETE' 'MODIFY' 'ISSUE' 'RETURN' 'RENEW' 'CREATE' 'CANCEL' 'SUSPEND' 'RESUME' 'ADDCIRCMESSAGE' 'DELCIRCMESSAGE' 'STATUS_CHANGE' 'PATRON_NOTICE' 'CHANGE PASS' 'Run' 'ADD_BASKET' 'MODIFY_BASKET' 'CLOSE_BASKET' 'APPROVE_BASKET' ] %] >+ [% FOREACH actx IN [ 'ADD' 'DELETE' 'MODIFY' 'ISSUE' 'RETURN' 'RENEW' 'CREATE' 'CANCEL' 'SUSPEND' 'RESUME' 'ADDCIRCMESSAGE' 'DELCIRCMESSAGE' 'STATUS_CHANGE' 'PATRON_NOTICE' 'CHANGE PASS' 'Run' 'ADD_BASKET' 'MODIFY_BASKET' 'MODIFY_BASKET_HEADER' 'MODIFY_BASKET_USERS' 'CLOSE_BASKET' 'APPROVE_BASKET' 'REOPEN_BASKET' ] > [% IF actions.grep(actx).size %] > <label for="action[% actx| replace('\s+', '_') | html %]" class="viewlog"><input type="checkbox" id="action[% actx | replace('\s+', '_') | html %]" name="actions" value="[% actx | html %]" checked="checked"> [% PROCESS translate_log_action action=actx %]</label> > [% ELSE %] >-- >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 23971
:
95285
|
95286
|
95885
|
95888
|
96063
|
96064
|
100239
|
100240
|
100241
|
103911
|
103912
|
103913
|
103945
|
108962
|
111300
|
111301
|
111302
|
111303
|
111304
|
111955
|
111956
|
111957
|
111958
|
111959
|
111960
|
112277
|
112278
|
112279
|
112280
|
112281
|
112282
|
112283
|
112284
|
112285
|
112286
|
112287
|
112288
|
112289
|
112290
|
112291
|
112298
|
112299
|
112300
|
112301
|
112302
|
112303
|
112304
|
112305
|
112306
|
112307
|
113384
|
113385
|
113386
|
113387
|
113388
|
113389
|
113390
|
113391
|
113392
|
113393
|
114857
|
114858
|
114859
|
114860
|
114861
|
114862
|
114863
|
114864
|
114865
|
114866
|
114867
|
114905
|
114906
|
114907
|
114908
|
114909
|
114910
|
114911
|
114912
|
114913
|
114914
|
114915
|
114916
|
115976
|
115977
|
115978
|
115979
|
115980
|
115981
|
115982
|
115983
|
115984
|
115985
|
115986
|
119401
|
119402
|
119403
|
119404
|
119405
|
119406
|
119407
|
119408
|
119409
|
119410
|
119411
|
119412
|
119944
|
119946
|
120048