Fixed: Backward compatibility

This commit is contained in:
Laurent Destailleur 2015-01-18 11:48:52 +01:00
parent 1681e3b03d
commit b53b8d2e45

View File

@ -138,6 +138,13 @@ class ActionComm extends CommonObject
if ($this->elementtype=='commande') $this->elementtype='order';
if ($this->elementtype=='contrat') $this->elementtype='contract';
if (! is_array($this->userassigned)) // For backward compatibility
{
$tmpid=$this->userassigned;
$this->userassigned=array();
$this->userassigned[$tmpid]=array('id'=>$tmpid);
}
$userownerid=$this->userownerid;
$userdoneid=$this->userdoneid;