Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).


## [UNRELEASED]

### Fixed

- Prevent deletion of actors during escalation.

## [2.10.2] - 2026-04-07

### Fixed
Expand Down
20 changes: 10 additions & 10 deletions inc/ticket.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,6 @@ public static function climb_group($tickets_id, $groups_id, $no_redirect = false
'type' => CommonITILActor::ASSIGN,
];
if (!$group_ticket->find($condition)) {
$ticket_group = new Group_Ticket();
PluginEscaladeTaskmanager::setTicketTask([
'tickets_id' => $tickets_id,
'is_private' => true,
Expand All @@ -661,17 +660,18 @@ public static function climb_group($tickets_id, $groups_id, $no_redirect = false
$group->getName() . '</i></p><hr />',
),
]);

// FIX: pass the FULL actor state (requester + observer + assign),
// otherwise GLPI 11 core (CommonITILObject::transformActorsInput)
// interprets the missing keys as "no requesters / no observers"
// and wipes them from the ticket regardless of the
// "Remove requester(s) on escalation" plugin config.
$ticket = new Ticket();
$ticket->update([
'id' => $tickets_id,
'_actors' => [
'assign' => [
[
'items_id' => $groups_id,
'itemtype' => 'Group',
],
],
],
'id' => $tickets_id,
'_actors' => self::getTicketFieldsWithActors($tickets_id, $groups_id),
'actortype' => CommonITILActor::ASSIGN,
'groups_id' => $groups_id,
]);
}

Expand Down