Fix No modify trigger must be called during creation
This commit is contained in:
parent
3ea7a1fcab
commit
176b52f305
@ -216,9 +216,9 @@ class Contact extends CommonObject
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! $error)
|
if (! $error)
|
||||||
{
|
{
|
||||||
$result=$this->update_perso($this->id, $user);
|
$result=$this->update_perso($this->id, $user, 1); // TODO Remove function update_perso, should be same than update
|
||||||
if ($result < 0)
|
if ($result < 0)
|
||||||
{
|
{
|
||||||
$error++;
|
$error++;
|
||||||
@ -226,7 +226,7 @@ class Contact extends CommonObject
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! $error)
|
if (! $error)
|
||||||
{
|
{
|
||||||
// Call trigger
|
// Call trigger
|
||||||
$result=$this->call_trigger('CONTACT_CREATE',$user);
|
$result=$this->call_trigger('CONTACT_CREATE',$user);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user