Bugzilla – Attachment 71237 Details for
Bug 19530
Prevent multiple transfers from existing for one item
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19530: Don't update the date arrived for closed transfers
Bug-19530-Dont-update-the-date-arrived-for-closed-.patch (text/plain), 1.12 KB, created by
Josef Moravec
on 2018-02-05 16:15:01 UTC
(
hide
)
Description:
Bug 19530: Don't update the date arrived for closed transfers
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2018-02-05 16:15:01 UTC
Size:
1.12 KB
patch
obsolete
>From 4091fccb4321f5fe328d62da61389dd71f7c7d2b Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatetsolutions.com> >Date: Tue, 30 Jan 2018 11:22:52 -0500 >Subject: [PATCH] Bug 19530: Don't update the date arrived for closed transfers > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > C4/Items.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Items.pm b/C4/Items.pm >index 241aae0..2a2a640 100644 >--- a/C4/Items.pm >+++ b/C4/Items.pm >@@ -622,7 +622,7 @@ sub ModItemTransfer { > # Remove the 'shelving cart' location status if it is being used. > CartToShelf( $itemnumber ) if ( C4::Context->preference("ReturnToShelvingCart") ); > >- $dbh->do("UPDATE branchtransfers SET datearrived = NOW(), comments = ? WHERE itemnumber = ?", undef, "Canceled, new transfer from $frombranch to $tobranch created", $itemnumber); >+ $dbh->do("UPDATE branchtransfers SET datearrived = NOW(), comments = ? WHERE itemnumber = ? AND datearrived IS NULL", undef, "Canceled, new transfer from $frombranch to $tobranch created", $itemnumber); > > #new entry in branchtransfers.... > my $sth = $dbh->prepare( >-- >2.1.4
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 19530
:
68541
|
68573
|
68574
|
71065
|
71066
|
71235
|
71236
| 71237