Fix: Objet user passé aux triggers
This commit is contained in:
parent
b01dd7c270
commit
71f5b33ad0
@ -2191,7 +2191,7 @@ class CommandeLigne
|
|||||||
*/
|
*/
|
||||||
function Delete()
|
function Delete()
|
||||||
{
|
{
|
||||||
global $langs, $conf;
|
global $langs, $conf, $user;
|
||||||
|
|
||||||
dolibarr_syslog("CommandeLigne::Delete id=".$this->id);
|
dolibarr_syslog("CommandeLigne::Delete id=".$this->id);
|
||||||
|
|
||||||
@ -2212,13 +2212,14 @@ class CommandeLigne
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Insère l'objet ligne de commande en base
|
* \brief Insère l'objet ligne de commande en base
|
||||||
* \return int <0 si ko, >0 si ok
|
* \return int <0 si ko, >0 si ok
|
||||||
*/
|
*/
|
||||||
function insert()
|
function insert()
|
||||||
{
|
{
|
||||||
global $langs, $conf;
|
global $langs, $conf, $user;
|
||||||
|
|
||||||
dolibarr_syslog("CommandeLigne.class::insert rang=".$this->rang);
|
dolibarr_syslog("CommandeLigne.class::insert rang=".$this->rang);
|
||||||
$this->db->begin();
|
$this->db->begin();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user