This commit is contained in:
Guillermo 2017-12-29 18:40:59 -03:00
parent 923571c5a2
commit c002fdf00f
1 changed files with 4 additions and 1 deletions

View File

@ -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();
}
}
}