Skip to content

Commit

Permalink
Fix(Option): fix 'use technician group' option
Browse files Browse the repository at this point in the history
  • Loading branch information
stonebuzz authored Jul 4, 2024
1 parent 1a2c264 commit 20d35ab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ 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/).

## [unrelease] -

### Fixed

- Fix ```use technician group``` option

## [2.9.6] - 2024-05-17

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions inc/ticket.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -450,14 +450,14 @@ public static function assignUserGroup(Ticket $ticket)
isset($ticket->input['_users_id_assign'])
&& $ticket->input['_users_id_assign'] > 0
&& (!isset($ticket->input['_groups_id_assign'])
|| $ticket->input['_groups_id_assign'] <= 0)
|| empty($ticket->input['_groups_id_assign']))
) {
if ($_SESSION['plugins']['escalade']['config']['use_assign_user_group'] == 1) {
// First group
$ticket->input['_groups_id_assign']
= PluginEscaladeUser::getTechnicianGroup(
$ticket->input['entities_id'],
$ticket->input['_users_id_assign'],
current($ticket->input['_users_id_assign']),
true
);
//prevent adding empty group
Expand Down

0 comments on commit 20d35ab

Please sign in to comment.