mirror of
https://github.com/opensupports/opensupports.git
synced 2025-07-31 01:35:15 +02:00
fix bug #115
This commit is contained in:
parent
923571c5a2
commit
c002fdf00f
@ -66,10 +66,13 @@ class ChangeDepartmentController extends Controller {
|
||||
$ticket->addEvent($event);
|
||||
$ticket->department = $department;
|
||||
$ticket->unread = true;
|
||||
if(!Controller::getLoggedUser()->sharedDepartmentList->includesId($department->id)) {
|
||||
$ticket->owner = null;
|
||||
}
|
||||
$ticket->store();
|
||||
|
||||
Log::createLog('DEPARTMENT_CHANGED', $ticket->ticketNumber);
|
||||
|
||||
Response::respondSuccess();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user