Skip to content

Commit

Permalink
Fix unsended notifications while 'Delete old groups when adding a new…
Browse files Browse the repository at this point in the history
… one' is set to 'No'
  • Loading branch information
RomainLvr committed May 3, 2024
1 parent 3fcf791 commit bf02d23
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions inc/ticket.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -352,17 +352,15 @@ public static function addHistoryOnAddGroup(CommonDBTM $item)

public static function processAfterAddGroup(CommonDBTM $item)
{
if ($_SESSION['plugins']['escalade']['config']['remove_group'] == false) {
return true;
}

$tickets_id = $item->fields['tickets_id'];
$groups_id = $item->fields['groups_id'];
$groups_id = $item->fields['groups_id'];

//remove old groups (keep last assigned)
self::removeAssignGroups($tickets_id, $groups_id);
//remove old groups (keep last assigned)
if ($_SESSION['plugins']['escalade']['config']['remove_group'] == true) {
self::removeAssignGroups($tickets_id, $groups_id);
}

//notified only the last group assigned
//notified only the last group assigned
$ticket = new Ticket();
$ticket->getFromDB($tickets_id);

Expand Down

0 comments on commit bf02d23

Please sign in to comment.