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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user