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. Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
5ad81611ad
commit
114f4ea5a3
|
|
@ -199,8 +199,6 @@ sub NewBasket {
|
|||
$basketname ||= q{}; # default to empty strings
|
||||
$basketnote ||= q{};
|
||||
$basketbooksellernote ||= q{};
|
||||
ModBasketHeader( $basket, $basketname, $basketnote, $basketbooksellernote,
|
||||
$basketcontractnumber, $booksellerid, $deliveryplace, $billingplace, $is_standing, $create_items );
|
||||
|
||||
# Log the basket creation
|
||||
if (C4::Context->preference("AcquisitionLog")) {
|
||||
|
|
@ -213,6 +211,9 @@ sub NewBasket {
|
|||
);
|
||||
}
|
||||
|
||||
ModBasketHeader( $basket, $basketname, $basketnote, $basketbooksellernote,
|
||||
$basketcontractnumber, $booksellerid, $deliveryplace, $billingplace, $is_standing, $create_items );
|
||||
|
||||
return $basket;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue