Bugzilla – Attachment 112514 Details for
Bug 24190
Add additional Acquisition logging
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24190: (follow-up) Modify order of logging
Bug-24190-follow-up-Modify-order-of-logging.patch (text/plain), 1.41 KB, created by
Andrew Isherwood
on 2020-10-26 11:47:20 UTC
(
hide
)
Description:
Bug 24190: (follow-up) Modify order of logging
Filename:
MIME Type:
Creator:
Andrew Isherwood
Created:
2020-10-26 11:47:20 UTC
Size:
1.41 KB
patch
obsolete
>From f9ff3a0ae3da169e637c63119a9178826f434d13 Mon Sep 17 00:00:00 2001 >From: Andrew Isherwood <andrew.isherwood@ptfs-europe.com> >Date: Mon, 26 Oct 2020 11:44:50 +0000 >Subject: [PATCH] Bug 24190: (follow-up) Modify order of logging > >Basket creation involves two steps in Koha, creating the basket then >modifying its header. We were logging these two steps in the wrong >order. This commit fixes that. >--- > C4/Acquisition.pm | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > >diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm >index d5a46144c5..7a9b61f085 100644 >--- a/C4/Acquisition.pm >+++ b/C4/Acquisition.pm >@@ -198,6 +198,11 @@ sub NewBasket { > . 'VALUES (now(),?,?)'; > $dbh->do( $query, {}, $booksellerid, $authorisedby ); > >+ # Log the basket creation >+ if (C4::Context->preference("AcqLog")) { >+ logaction('ACQUISITIONS', 'ADD_BASKET', $basket); >+ } >+ > my $basket = $dbh->{mysql_insertid}; > $basketname ||= q{}; # default to empty strings > $basketnote ||= q{}; >@@ -205,11 +210,6 @@ sub NewBasket { > ModBasketHeader( $basket, $basketname, $basketnote, $basketbooksellernote, > $basketcontractnumber, $booksellerid, $deliveryplace, $billingplace, $is_standing, $create_items ); > >- # Log the basket creation >- if (C4::Context->preference("AcqLog")) { >- logaction('ACQUISITIONS', 'ADD_BASKET', $basket); >- } >- > return $basket; > } > >-- >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 24190
:
96364
|
96369
|
100243
|
105082
|
105083
|
106096
|
106097
|
106098
|
106099
|
111080
|
111081
|
111082
|
111083
|
111084
|
112509
|
112510
|
112511
|
112512
|
112513
|
112514
|
116148
|
116149
|
116150
|
116151
|
116152
|
116153
|
122040
|
122041
|
122042
|
122043
|
122044
|
122045
|
123385
|
123386
|
123387
|
123388
|
123389
|
123390
|
123391
|
125119