bug-fix-patch

This commit is contained in:
Manish Verma
2016-10-31 13:06:39 +05:30
parent 6a06167063
commit 91dacdd998
3 changed files with 4 additions and 7 deletions

View File

@@ -612,13 +612,10 @@ class="active"
$LastResponse = App\User::where('id', '=', $TicketDatarow->user_id)->first();
if ($LastResponse->role == "user") {
$rep = "#F39C12";
$username = $LastResponse->user_name;
$username = $LastResponse->full_name;
} else {
$rep = "#000";
$username = $LastResponse->first_name . " " . $LastResponse->last_name;
if ($LastResponse->first_name == null || $LastResponse->last_name == null) {
$username = $LastResponse->user_name;
}
$username = $LastResponse->full_name;
}
$titles = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->get();
$count = count($titles);