Fix: instantiate object
This commit is contained in:
parent
9bbc27f846
commit
dbf28f42ff
@ -420,8 +420,9 @@ class ActionComm extends CommonObject
|
|||||||
for($i=0;$i<$num;$i++)
|
for($i=0;$i<$num;$i++)
|
||||||
{
|
{
|
||||||
$obj = $this->db->fetch_object($resql);
|
$obj = $this->db->fetch_object($resql);
|
||||||
$this->fetch($obj->id);
|
$actioncommstatic = new ActionComm($this->db);
|
||||||
$this->actions[$i] = $this;
|
$actioncommstatic->fetch($obj->id);
|
||||||
|
$this->actions[$i] = $actioncommstatic;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->db->free($resql);
|
$this->db->free($resql);
|
||||||
@ -620,15 +621,15 @@ class ActionComm extends CommonObject
|
|||||||
$libelle=$langs->trans("Action".$this->type_code);
|
$libelle=$langs->trans("Action".$this->type_code);
|
||||||
$libelleshort='';
|
$libelleshort='';
|
||||||
}
|
}
|
||||||
else if (empty($this->label))
|
else if (empty($this->libelle))
|
||||||
{
|
{
|
||||||
$libelle=$langs->trans("Action".$this->type_code);
|
$libelle=$langs->trans("Action".$this->type_code);
|
||||||
$libelleshort=$langs->trans("Action".$this->type_code,'','','','',$maxlength);
|
$libelleshort=$langs->trans("Action".$this->type_code,'','','','',$maxlength);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$libelle=$this->label;
|
$libelle=$this->libelle;
|
||||||
$libelleshort=dol_trunc($this->label,$maxlength);
|
$libelleshort=dol_trunc($this->libelle,$maxlength);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($withpicto)
|
if ($withpicto)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user