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…
Reference in New Issue