FIX hidden option MAIN_PROPAGATE_CONTACTS_FROM_ORIGIN

This commit is contained in:
Laurent Destailleur
2017-09-11 13:39:03 +02:00
parent 61a0f04bbe
commit b87ce172c3
4 changed files with 8 additions and 4 deletions

View File

@@ -920,7 +920,8 @@ class Commande extends CommonOrder
foreach ($exp->linkedObjectsIds['commande'] as $key => $value)
{
$originforcontact = 'commande';
$originidforcontact = $value->id;
if (is_object($value)) $originidforcontact = $value->id;
else $originidforcontact = $value;
break; // We take first one
}
}