Skip to content

Commit

Permalink
Evarisk#3459 [Task] fix: change trigger label
Browse files Browse the repository at this point in the history
  • Loading branch information
evarisk-micka committed Oct 20, 2023
1 parent 2ad50ea commit 5b4c682
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ public function runTrigger($action, $object, User $user, Translate $langs, Conf

$actioncomm->elementtype = 'digiriskelement@digiriskdolibarr';

$actioncomm->label = $langs->trans('ObjectCreateTrigger', $langs->transnoentities(ucfirst($object->element)), $object->ref);
$actioncomm->label = $langs->trans('ObjectCreateTrigger', $langs->transnoentities('Task'), $object->ref);
$actioncomm->note_private .= $langs->trans($label_progress) . ' : ' . $task_progress . '%' . '<br>';
$actioncomm->fk_element = $risk->fk_element;

Expand Down Expand Up @@ -642,7 +642,7 @@ public function runTrigger($action, $object, User $user, Translate $langs, Conf

$actioncomm->elementtype = 'digiriskelement@digiriskdolibarr';

$actioncomm->label = $langs->trans('ObjectModifyTrigger', $langs->transnoentities(ucfirst($object->element)), $object->ref);
$actioncomm->label = $langs->trans('ObjectModifyTrigger', $langs->transnoentities('Task'), $object->ref);
$actioncomm->note_private .= $langs->trans($label_progress) . ' : ' . $task_progress . '%' . '<br>';
$actioncomm->fk_element = $risk->fk_element;

Expand Down Expand Up @@ -672,7 +672,7 @@ public function runTrigger($action, $object, User $user, Translate $langs, Conf
}

$actioncomm->elementtype = 'digiriskelement@digiriskdolibarr';
$actioncomm->label = $langs->trans('ObjectDeleteTrigger', $langs->transnoentities(ucfirst($object->element)), $object->ref);
$actioncomm->label = $langs->trans('ObjectDeleteTrigger', $langs->transnoentities('Task'), $object->ref);
$actioncomm->note_private .= $langs->trans($label_progress) . ' : ' . $task_progress . '%' . '<br>';
$actioncomm->fk_element = $risk->fk_element;

Expand Down

0 comments on commit 5b4c682

Please sign in to comment.