Skip to content

Commit

Permalink
Evarisk#3348 [Triggers] fix: triggers object fetch condition
Browse files Browse the repository at this point in the history
  • Loading branch information
evarisk-theo committed Oct 12, 2023
1 parent e9aa511 commit 05c07f0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 05c07f0

Please sign in to comment.