FIX: Global on $user parameter reset the variable
When we use the fichinter API with global, the $user object is reset If global is not applied on $user we can retrieve the informations from it
This commit is contained in:
parent
1834be79a0
commit
ba58578d60
@ -140,7 +140,7 @@ class Fichinter extends CommonObject
|
||||
*/
|
||||
function create($user, $notrigger=0)
|
||||
{
|
||||
global $conf, $user, $langs;
|
||||
global $conf, $langs;
|
||||
|
||||
dol_syslog(get_class($this)."::create ref=".$this->ref);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user