Skip to content

Commit

Permalink
Fix ola disabling after esaclation
Browse files Browse the repository at this point in the history
  • Loading branch information
Lainow committed Dec 10, 2024
1 parent 6f52b11 commit 731ba1c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion front/ticket.form.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@
// Sanitize before merging with $_POST['comment'] which is already sanitized
'content' => Sanitizer::sanitize(
'<p><i>' . sprintf(__('Escalation to the group %s.', 'escalade'), Sanitizer::unsanitize($group->getName())) . '</i></p><hr />'
) . $_POST['comment']
) . $_POST['comment'],
'_do_not_compute_takeintoaccount' => true
]);
}

Expand Down
7 changes: 5 additions & 2 deletions inc/ticket.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@ public static function AssignFirstGroupOnSolve(CommonDBTM $item)
'_no_reopen' => true, //prevent reopening ticket
'state' => Planning::INFO,
'content' => __("Solution provided, back to the group", "escalade") . " " .
$group->getName()
$group->getName(),
'_do_not_compute_takeintoaccount' => true
]);
}
}
Expand Down Expand Up @@ -277,7 +278,8 @@ public static function AssignLastGroupOnRejectedSolution(CommonDBTM $item)
'is_private' => true,
'state' => Planning::INFO,
'content' => __("Solution rejected, return to the group", "escalade") . " " .
$group->getName()
$group->getName(),
'_do_not_compute_takeintoaccount' => true
]);
}

Expand Down Expand Up @@ -381,6 +383,7 @@ public static function addHistoryOnAddGroup(CommonDBTM $item)
'is_private' => true,
'state' => Planning::INFO,
'content' => Toolbox::addslashes_deep(sprintf(__("Escalation to the group %s.", "escalade"), $group->getName())),
'_do_not_compute_takeintoaccount' => true
]);
}

Expand Down

0 comments on commit 731ba1c

Please sign in to comment.