Removed redundant form_types functions and the file /reporting/includes/form_types...
[fa-stable.git] / sales / includes / cart_class.inc
index 0e355efb58e82b0e6ec989e0ce23dc2232ea3eba..c2f7f4ab6d436ca7bf0bbadd33980700594b631c 100644 (file)
@@ -142,7 +142,7 @@ class cart
        function write($policy=0) {
                if (count($this->src_docs) == 0 && ($this->trans_type == 10 || $this->trans_type == 13)) {
                        // direct document -> first add parent
-                       $src = $this; // make local copy of this cart
+                       $src = do_clone($this);
                        $src->trans_type = get_parent_type($src->trans_type);
                        $src->reference = 'auto';