Skip to content

Commit

Permalink
#762 [Trigger] fix: control_validateD and unvalideted
Browse files Browse the repository at this point in the history
  • Loading branch information
evarisk-micka committed Apr 6, 2023
1 parent 17b1766 commit 39dfe43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,13 @@ public function runTrigger($action, $object, User $user, Translate $langs, Conf

case 'QUESTION_VALIDATE' :
case 'SHEET_VALIDATE' :
case 'CONTROL_VALIDATE' :
case 'CONTROL_VALIDATED' :
$actioncomm->code = 'AC_' . strtoupper($object->element) . '_VALIDATE';
$actioncomm->label = $langs->trans('ObjectValidateTrigger', $langs->transnoentities(ucfirst($object->element)));
$actioncomm->create($user);
break;

case 'CONTROL_UNVALIDATE' :
case 'CONTROL_UNVALIDATED' :
$actioncomm->code = 'AC_' . strtoupper($object->element) . '_UNVALIDATE';
$actioncomm->label = $langs->trans('ObjectUnValidateTrigger', $langs->transnoentities(ucfirst($object->element)));
$actioncomm->create($user);
Expand Down
2 changes: 1 addition & 1 deletion view/control/control_card.php
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@
$result = $object->setDraft($user, false);
if ($result > 0) {
$object->verdict = null;
$result = $object->update($user);
$result = $object->update($user, true);
// Set reopened OK
$urltogo = str_replace('__ID__', $result, $backtopage);
$urltogo = preg_replace('/--IDFORBACKTOPAGE--/', $id, $urltogo); // New method to autoselect project after a New on another form object creation
Expand Down

0 comments on commit 39dfe43

Please sign in to comment.