Bug-fix-patch4

# client close ticket thread is not internal
# change lenght of titcket title in cleint ticket list page
# client side ticket attachment issue fixed
This commit is contained in:
Manish Verma
2016-11-28 16:41:55 +05:30
parent fd8d9085c2
commit 6f7ee1569c
3 changed files with 106 additions and 110 deletions

View File

@@ -74,9 +74,10 @@ class="active"
$title = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->orderBy('id')->first();
$string = strip_tags($title->title);
if (strlen($string) > 40) {
$stringCut = substr($string, 0, 40);
$string = substr($stringCut, 0, strrpos($stringCut, ' ')) . ' ...';
$stringCut = substr($string, 0, 25);
$string = $stringCut.'....';
}
// dd($stringCut);
$TicketData = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)
->where('user_id', '!=' , null)
->max('id');