Code comment
This commit is contained in:
parent
34564ea084
commit
dc84d7e844
@ -233,14 +233,14 @@ class ActionComm extends CommonObject
|
|||||||
/**
|
/**
|
||||||
* @var User Object user of owner
|
* @var User Object user of owner
|
||||||
* @deprecated
|
* @deprecated
|
||||||
* @see userownerid
|
* @see $userownerid
|
||||||
*/
|
*/
|
||||||
public $usertodo;
|
public $usertodo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var User Object user that did action
|
* @var User Object user that did action
|
||||||
* @deprecated
|
* @deprecated
|
||||||
* @see userdoneid
|
* @see $userdoneid
|
||||||
*/
|
*/
|
||||||
public $userdone;
|
public $userdone;
|
||||||
|
|
||||||
@ -257,14 +257,14 @@ class ActionComm extends CommonObject
|
|||||||
/**
|
/**
|
||||||
* @var Societe|null Company linked to action (optional)
|
* @var Societe|null Company linked to action (optional)
|
||||||
* @deprecated
|
* @deprecated
|
||||||
* @see socid
|
* @see $socid
|
||||||
*/
|
*/
|
||||||
public $societe;
|
public $societe;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var Contact|null Contact linked to action (optional)
|
* @var Contact|null Contact linked to action (optional)
|
||||||
* @deprecated
|
* @deprecated
|
||||||
* @see contactid
|
* @see $contactid
|
||||||
*/
|
*/
|
||||||
public $contact;
|
public $contact;
|
||||||
|
|
||||||
@ -824,7 +824,7 @@ class ActionComm extends CommonObject
|
|||||||
/**
|
/**
|
||||||
* Initialize this->userassigned array with list of id of user assigned to event
|
* Initialize this->userassigned array with list of id of user assigned to event
|
||||||
*
|
*
|
||||||
* @param bool $override this->userownerid when empty
|
* @param bool $override Override $this->userownerid when empty. TODO This should be false by default. True is here to fix corrupted data.
|
||||||
* @return int <0 if KO, >0 if OK
|
* @return int <0 if KO, >0 if OK
|
||||||
*/
|
*/
|
||||||
public function fetch_userassigned($override = true)
|
public function fetch_userassigned($override = true)
|
||||||
@ -856,7 +856,7 @@ class ActionComm extends CommonObject
|
|||||||
'transparency'=>$obj->transparency);
|
'transparency'=>$obj->transparency);
|
||||||
}
|
}
|
||||||
|
|
||||||
if($override === true)
|
if ($override === true)
|
||||||
{
|
{
|
||||||
// If not defined (should not happened, we fix this)
|
// If not defined (should not happened, we fix this)
|
||||||
if (empty($this->userownerid))
|
if (empty($this->userownerid))
|
||||||
@ -883,7 +883,7 @@ class ActionComm extends CommonObject
|
|||||||
*/
|
*/
|
||||||
public function delete($notrigger = 0)
|
public function delete($notrigger = 0)
|
||||||
{
|
{
|
||||||
global $user,$langs,$conf;
|
global $user;
|
||||||
|
|
||||||
$error=0;
|
$error=0;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user