Fixed bugs 312-314, imporved debug error handling, updated gettext template.
[fa-stable.git] / sales / includes / cart_class.inc
index 286cc3fdb1e4694f9e3497c22eb1b2db95931be2..286f9f373dcd89642d3f9f8ffe2e1eb8849177a1 100644 (file)
@@ -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) {