Bugzilla – Attachment 71066 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-close.patch (text/plain), 1.06 KB, created by
Kyle M Hall (khall)
on 2018-01-30 16:23:32 UTC
(
hide
)
Description:
Bug 19530 - Don't update the date arrived for closed transfers
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2018-01-30 16:23:32 UTC
Size:
1.06 KB
patch
obsolete
>From 00e2a6c764c10334a199f7ad6c622e8e5d5f3e54 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 > >--- > 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.10.2
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