Bugzilla – Attachment 115977 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) Remove data duplication
Bug-23971-follow-up-Remove-data-duplication.patch (text/plain), 4.11 KB, created by
Andrew Isherwood
on 2021-01-28 16:45:03 UTC
(
hide
)
Description:
Bug 23971: (follow-up) Remove data duplication
Filename:
MIME Type:
Creator:
Andrew Isherwood
Created:
2021-01-28 16:45:03 UTC
Size:
4.11 KB
patch
obsolete
>From 242346be8f9ba0d84fb4d1a95cf12037c7e27493 Mon Sep 17 00:00:00 2001 >From: Andrew Isherwood <andrew.isherwood@ptfs-europe.com> >Date: Fri, 6 Dec 2019 10:30:20 +0000 >Subject: [PATCH] Bug 23971: (follow-up) Remove data duplication >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >In response to Séverine observations in comment #10, this patch removes >the duplicate logging of the borrowernumber > >https://bugs.koha-community.org/show_bug.cgi?id=23971 >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > C4/Acquisition.pm | 8 ++------ > acqui/addorder.pl | 3 +-- > acqui/basket.pl | 9 +++------ > acqui/basketheader.pl | 3 +-- > 4 files changed, 7 insertions(+), 16 deletions(-) > >diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm >index 23aaf25d0d..e03474a8e7 100644 >--- a/C4/Acquisition.pm >+++ b/C4/Acquisition.pm >@@ -509,14 +509,10 @@ sub ModBasket { > > # Log the basket update > if (C4::Context->preference("AcqLog")) { >- my $infos = $basketinfo->{borrowernumber} ? >- sprintf("%010d", $basketinfo->{borrowernumber}) : >- undef; > logaction( > 'ACQUISITIONS', > 'MODIFY_BASKET', >- $basketinfo->{'basketno'}, >- $infos >+ $basketinfo->{'basketno'} > ); > } > >@@ -559,7 +555,7 @@ case the AcqCreateItem syspref takes precedence). > =cut > > sub ModBasketHeader { >- my ($basketno, $basketname, $note, $booksellernote, $contractnumber, $booksellerid, $deliveryplace, $billingplace, $is_standing, $create_items, $borrowernumber) = @_; >+ my ($basketno, $basketname, $note, $booksellernote, $contractnumber, $booksellerid, $deliveryplace, $billingplace, $is_standing, $create_items) = @_; > > $is_standing ||= 0; > my $query = qq{ >diff --git a/acqui/addorder.pl b/acqui/addorder.pl >index bef3dc8171..cd69a4d251 100755 >--- a/acqui/addorder.pl >+++ b/acqui/addorder.pl >@@ -365,8 +365,7 @@ if (C4::Context->preference("AcqLog") && $basketno) { > logaction( > 'ACQUISITIONS', > 'MODIFY_BASKET', >- $basketno, >- sprintf("%010d", $loggedinuser) >+ $basketno > ); > } > >diff --git a/acqui/basket.pl b/acqui/basket.pl >index 5a0a9101d7..015f27a6b5 100755 >--- a/acqui/basket.pl >+++ b/acqui/basket.pl >@@ -210,8 +210,7 @@ if ( $op eq 'delete_confirm' ) { > closed => 1, > }); > ModBasket( { basketno => $basketno, >- basketgroupid => $basketgroupid, >- borrowernumber => $loggedinuser } ); >+ basketgroupid => $basketgroupid } ); > print $query->redirect('/cgi-bin/koha/acqui/basketgroup.pl?booksellerid='.$booksellerid.'&closed=1'); > } else { > print $query->redirect('/cgi-bin/koha/acqui/booksellers.pl?booksellerid=' . $booksellerid); >@@ -244,8 +243,7 @@ elsif ( $op eq 'ediorder' ) { > $branch = undef if(defined $branch and $branch eq ''); > ModBasket({ > basketno => $basket->{basketno}, >- branch => $branch, >- borrowernumber => $loggedinuser >+ branch => $branch > }); > print $query->redirect("/cgi-bin/koha/acqui/basket.pl?basketno=$basketno"); > exit; >@@ -561,8 +559,7 @@ sub edi_close_and_order { > ModBasket( > { > basketno => $basketno, >- basketgroupid => $basketgroupid, >- borrowernumber => $loggedinuser >+ basketgroupid => $basketgroupid > } > ); > print $query->redirect( >diff --git a/acqui/basketheader.pl b/acqui/basketheader.pl >index 0cb5737b20..f06900ce85 100755 >--- a/acqui/basketheader.pl >+++ b/acqui/basketheader.pl >@@ -153,8 +153,7 @@ if ( $op eq 'add_form' ) { > scalar $input->param('deliveryplace'), > scalar $input->param('billingplace'), > scalar $input->param('is_standing') ? 1 : undef, >- scalar $input->param('create_items'), >- $loggedinuser >+ scalar $input->param('create_items') > ); > } else { #New basket > $basketno = NewBasket( >-- >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