From 176b52f3052c83f1db5ce44e415243c5ec3c0fb2 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@destailleur.fr> Date: Tue, 2 Aug 2016 17:55:13 +0200 Subject: [PATCH] Fix No modify trigger must be called during creation --- htdocs/contact/class/contact.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/contact/class/contact.class.php b/htdocs/contact/class/contact.class.php index 1edb0b1d3c3..6a9a7df7b5e 100644 --- a/htdocs/contact/class/contact.class.php +++ b/htdocs/contact/class/contact.class.php @@ -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) { $error++; @@ -226,7 +226,7 @@ class Contact extends CommonObject } } - if (! $error) + if (! $error) { // Call trigger $result=$this->call_trigger('CONTACT_CREATE',$user); -- GitLab