fix class actioncomm for travis and feature userassigned
This commit is contained in:
parent
d6778b9ed6
commit
e872c40cc7
@ -144,13 +144,12 @@ class ActionComm extends CommonObject
|
|||||||
$this->userassigned=array();
|
$this->userassigned=array();
|
||||||
$this->userassigned[$tmpid]=array('id'=>$tmpid);
|
$this->userassigned[$tmpid]=array('id'=>$tmpid);
|
||||||
}
|
}
|
||||||
|
|
||||||
$userownerid=$this->userownerid;
|
$userownerid=$this->userownerid;
|
||||||
$userdoneid=$this->userdoneid;
|
$userdoneid=$this->userdoneid;
|
||||||
|
|
||||||
// Be sure assigned user array is not empty.
|
// Be sure assigned user array is not empty.
|
||||||
if (count($this->userassigned) == 0) $this->userassigned = array('id'=>$userownerid);
|
if (count($this->userassigned) == 0) $this->userassigned[] = array('id'=>$userownerid);
|
||||||
|
|
||||||
if (! $this->type_id || ! $this->type_code)
|
if (! $this->type_id || ! $this->type_code)
|
||||||
{
|
{
|
||||||
$key=empty($this->type_id)?$this->type_code:$this->type_id;
|
$key=empty($this->type_id)?$this->type_code:$this->type_id;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user