Bugzilla – Attachment 97550 Details for
Bug 24434
C4::Circulation::updateWrongTransfer is never called but should be
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24434: Remove updateWrongTransfer
Bug-24434-Remove-updateWrongTransfer.patch (text/plain), 2.56 KB, created by
Kyle M Hall (khall)
on 2020-01-17 18:21:05 UTC
(
hide
)
Description:
Bug 24434: Remove updateWrongTransfer
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2020-01-17 18:21:05 UTC
Size:
2.56 KB
patch
obsolete
>From 48de8538df314ce0c051167b47ccb5298d32dd19 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 16 Jan 2020 15:32:17 +0000 >Subject: [PATCH] Bug 24434: Remove updateWrongTransfer > >This patch simply removes the unused updateWrongTransfer method from >C4::Circulation. > >Test plan: Read code and varify that the method would never actually be >triggered. > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > C4/Circulation.pm | 26 -------------------------- > circ/returns.pl | 5 ----- > 2 files changed, 31 deletions(-) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index c3629c2472..e4ded839af 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -115,7 +115,6 @@ BEGIN { > &transferbook > &GetTransfers > &GetTransfersFromTo >- &updateWrongTransfer > &DeleteTransfer > &IsBranchTransferAllowed > &CreateBranchTransferLimit >@@ -3468,31 +3467,6 @@ sub SendCirculationAlert { > return; > } > >-=head2 updateWrongTransfer >- >- $items = updateWrongTransfer($itemNumber,$borrowernumber,$waitingAtLibrary,$FromLibrary); >- >-This function validate the line of brachtransfer but with the wrong destination (mistake from a librarian ...), and create a new line in branchtransfer from the actual library to the original library of reservation >- >-=cut >- >-sub updateWrongTransfer { >- my ( $itemNumber,$waitingAtLibrary,$FromLibrary ) = @_; >- my $dbh = C4::Context->dbh; >-# first step validate the actual line of transfert . >- my $sth = >- $dbh->prepare( >- "update branchtransfers set datearrived = now(),tobranch=?,comments='wrongtransfer' where itemnumber= ? AND datearrived IS NULL" >- ); >- $sth->execute($FromLibrary,$itemNumber); >- >-# second step create a new line of branchtransfer to the right location . >- ModItemTransfer($itemNumber, $FromLibrary, $waitingAtLibrary); >- >-#third step changing holdingbranch of item >- UpdateHoldingbranch($FromLibrary,$itemNumber); >-} >- > =head2 UpdateHoldingbranch > > $items = UpdateHoldingbranch($branch,$itmenumber); >diff --git a/circ/returns.pl b/circ/returns.pl >index a9e2bc243c..4b338e4796 100755 >--- a/circ/returns.pl >+++ b/circ/returns.pl >@@ -142,11 +142,6 @@ foreach ( $query->param ) { > > ############ > # Deal with the requests.... >- >-if ($query->param('WT-itemNumber')){ >- updateWrongTransfer ($query->param('WT-itemNumber'),$query->param('WT-waitingAt'),$query->param('WT-From')); >-} >- > if ( $query->param('reserve_id') ) { > my $itemnumber = $query->param('itemnumber'); > my $borrowernumber = $query->param('borrowernumber'); >-- >2.21.1 (Apple Git-122.3)
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 24434
:
97449
|
97550
|
99829
|
120625
|
120631
|
120632
|
120657
|
120658
|
120683
|
120684
|
120757
|
120758
|
121029
|
121030
|
121031
|
121032
|
121033
|
121034
|
121057
|
121058
|
121059
|
121060
|
121061
|
121071
|
121072
|
121073
|
121074
|
121075
|
121515
|
121702
|
121703
|
121704
|
121705
|
121706
|
121707
|
121798
|
121799
|
121800
|
121801
|
121802
|
121803
|
121804