Bugzilla – Attachment 35708 Details for
Bug 13675
the budget of an order is set to null if not changed on receiving
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13675: Do not set aqorders.budget_id to NULL
Bug-13675-Do-not-set-aqordersbudgetid-to-NULL.patch (text/plain), 1.28 KB, created by
Jonathan Druart
on 2015-02-06 15:22:47 UTC
(
hide
)
Description:
Bug 13675: Do not set aqorders.budget_id to NULL
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-02-06 15:22:47 UTC
Size:
1.28 KB
patch
obsolete
>From c9e68cda3a1944fe8f6d32fa048eaebe610023a3 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Fri, 6 Feb 2015 16:19:14 +0100 >Subject: [PATCH] Bug 13675: Do not set aqorders.budget_id to NULL > >C4::Acquisition::ModReceiveOrder updates the aqorders with >budget_id=NULL if no budget_id given in parameter. >Actually the same budget_id should be used. >In tests (especially t/db_dependent/Acquisition/TransferOrder.t), >ModReceiveOrder is not called with a budget_id param and set to NULL the >budget_id value. > >test plan: > prove t/db_dependent/Acquisition/TransferOrder.t >should return green > >Note that this bug should not appear using the interface. >--- > C4/Acquisition.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm >index d59ae56..4eeac60 100644 >--- a/C4/Acquisition.pm >+++ b/C4/Acquisition.pm >@@ -1471,7 +1471,7 @@ q{SELECT * FROM aqorders WHERE biblionumber=? AND aqorders.ordernumber=?}, > $cost, > $rrp, > $ecost, >- $budget_id, >+ ( $budget_id ? $budget_id : $order->{budget_id} ), > ( defined $order_internalnote ? $order_internalnote : () ), > ( defined $order_vendornote ? $order_vendornote : () ), > $biblionumber, >-- >2.1.0
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 13675
:
35708
|
35710
|
35732