From 731ba1c32c1eddba8e8b9891312df0607569ae1d Mon Sep 17 00:00:00 2001 From: Lainow Date: Tue, 10 Dec 2024 16:40:26 +0100 Subject: [PATCH] Fix ola disabling after esaclation --- front/ticket.form.php | 3 ++- inc/ticket.class.php | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/front/ticket.form.php b/front/ticket.form.php index 214aed05..d08dbd9e 100644 --- a/front/ticket.form.php +++ b/front/ticket.form.php @@ -86,7 +86,8 @@ // Sanitize before merging with $_POST['comment'] which is already sanitized 'content' => Sanitizer::sanitize( '

' . sprintf(__('Escalation to the group %s.', 'escalade'), Sanitizer::unsanitize($group->getName())) . '


' - ) . $_POST['comment'] + ) . $_POST['comment'], + '_do_not_compute_takeintoaccount' => true ]); } diff --git a/inc/ticket.class.php b/inc/ticket.class.php index 6785dea7..4793bf87 100644 --- a/inc/ticket.class.php +++ b/inc/ticket.class.php @@ -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 ]); } } @@ -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 ]); } @@ -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 ]); }