bug-fix-patch-8

# correcting comparision between integer number and string number
# Importing help topic's set priority and auto-assigne while creating
ticket from cleint panel.
This commit is contained in:
Manish Verma
2016-12-23 12:58:34 +05:30
parent 179cb4e362
commit d3f3497fe0
2 changed files with 8 additions and 2 deletions

View File

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