Update interface_99_modMyModule_MyModuleTriggers.class.php

This commit is contained in:
Frédéric FRANCE 2018-01-25 17:50:11 +01:00 committed by Frédéric FRANCE
parent 9e0a548eff
commit ec38b8a5a2
No known key found for this signature in database
GPG Key ID: 06809324E4B2ABC1

View File

@ -4645,11 +4645,11 @@ abstract class CommonObject
} }
else else
{ {
if ($trigger) if (!$notrigger)
{ {
// Call trigger // Call trigger
$this->context=array('extrafieldaddupdate'=>1); $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++; if ($result < 0) $error++;
// End call trigger // End call trigger
} }