From ec38b8a5a25c8e5472a3c694039da62a2b6a8147 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Thu, 25 Jan 2018 17:50:11 +0100 Subject: [PATCH] Update interface_99_modMyModule_MyModuleTriggers.class.php --- htdocs/core/class/commonobject.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index 06b34ccb8b3..4f1627c2940 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -4645,11 +4645,11 @@ abstract class CommonObject } else { - if ($trigger) + if (!$notrigger) { // Call trigger $this->context=array('extrafieldaddupdate'=>1); - $result=$this->call_trigger(strtoupper(get_class($this)) . '_EXTRAFIELDS_MODIFY', $userused); + $result=$this->call_trigger(strtoupper(get_class($this)) . '_MODIFY', $userused); if ($result < 0) $error++; // End call trigger }