bug-fix-patch-7

# while changing owner of the ticket cheking if the owner already owns
the ticket or not
# fixed showing inactive agents problem in help topic edit and create
pages
This commit is contained in:
Manish Verma
2016-12-22 13:15:16 +05:30
parent df14836985
commit c47b5da890
12 changed files with 34 additions and 15 deletions

View File

@@ -2218,6 +2218,9 @@ class TicketController extends Controller
if ($count === 1) {
$user_id = $user->id;
$ticket = Tickets::where('id', '=', $id)->first();
if($user_id === $ticket->user_id) {
return 400;
}
$ticket_number = $ticket->ticket_number;
$ticket->user_id = $user_id;
$ticket->save();