diff --git a/core/triggers/interface_99_modDigiriskdolibarr_DigiriskdolibarrTriggers.class.php b/core/triggers/interface_99_modDigiriskdolibarr_DigiriskdolibarrTriggers.class.php index 22a87ce0d..43228cac6 100644 --- a/core/triggers/interface_99_modDigiriskdolibarr_DigiriskdolibarrTriggers.class.php +++ b/core/triggers/interface_99_modDigiriskdolibarr_DigiriskdolibarrTriggers.class.php @@ -146,7 +146,9 @@ public function runTrigger($action, $object, User $user, Translate $langs, Conf // Trigger descriptions are handled by class function getTriggerDescription if (method_exists($object, 'getTriggerDescription')) { - $object->fetch($object->id); + if (strstr($action, '_CREATE')) { + $object->fetch($object->id); + } if (getDolGlobalInt('DIGIRISKDOLIBARR_ADVANCED_TRIGGER') && !empty($object->fields)) { $actioncomm->note_private = $object->getTriggerDescription($object); }