From f1548bd253fc40b2b5913b31612c7536c76445f1 Mon Sep 17 00:00:00 2001 From: Christophe Battarel Date: Wed, 27 Mar 2019 10:27:08 +0100 Subject: [PATCH] fix objfrom --- htdocs/commande/class/commande.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php index 69cdae6a181..81d13b749ba 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -1135,7 +1135,7 @@ class Commande extends CommonOrder if (! $error) { // copy external contacts if same company - if ($this->socid == $object->socid) + if ($this->socid == $objFrom->socid) { if ($this->copy_linked_contact($objFrom, 'external') < 0) $error++;