From 698b53eff70b06a1eb4ff1e667c072f48776e1e7 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Thu, 28 Oct 2010 16:13:15 +0000 Subject: [PATCH] Fixed db error on free hand credit invoice reedition. --- CHANGELOG.txt | 2 ++ sales/includes/cart_class.inc | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index a6592f3f..f1a56419 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -29,6 +29,8 @@ $ /admin/inst_theme.php /install/index.php # Fixed mailing problems under PHP with Suhoshin patch (Michael Hahn) $ /reporting/includes/class.mail.inc +# Fixed db error on freehand credit invoice reedition. +$ /sales/includes/cart_class.inc ------------------------------- Release 2.3 RC3 -------------------------------- 26-Oct-2010 Janusz Dobrowolski diff --git a/sales/includes/cart_class.inc b/sales/includes/cart_class.inc index 286cc3fd..286f9f37 100644 --- a/sales/includes/cart_class.inc +++ b/sales/includes/cart_class.inc @@ -185,10 +185,10 @@ class cart // $this->customer_currency = $sodata["curr_code"]; $this->delivery_to = $sodata["deliver_to"]; $this->delivery_address = $sodata["delivery_address"]; - } // child transaction reedition - update with parent info unless it is freehand - if (!$no_edit) - $this->set_parent_constraints($sodata, $trans_no[0]); + if (!$no_edit) + $this->set_parent_constraints($sodata, $trans_no[0]); + } } // prepare qtys for derivative document entry (not used in display) if($no_edit) { -- 2.30.2