fix objfrom

This commit is contained in:
Christophe Battarel
2019-03-27 10:27:08 +01:00
parent 9efb1b9525
commit f1548bd253

View File

@@ -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++;