Bug-fix-patch-16
Starting count for bug patch so numbered this pacth as 16 (I hope we've commit atleast 15 bug fixes till now) Solved bugs: *While replying on a ticket as an agent subject of a mail is getting changed which results in new mail thread creation in emails. *Ticket title sometimes get replaced by ''(an empty string) because sometimes it fetches last created thread as first row and it my not have the subject/title. So tried to fetch only first row which contains subjetc of the tickets.
This commit is contained in:
@@ -566,7 +566,7 @@ class TicketController extends Controller
|
|||||||
$attachment_files = null;
|
$attachment_files = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
$thread = Ticket_Thread::where('ticket_id', '=', $ticket_id)->first();
|
$thread = Ticket_Thread::where('ticket_id', '=', $ticket_id)->orderBy('id')->first();
|
||||||
$ticket_subject = $thread->title;
|
$ticket_subject = $thread->title;
|
||||||
$user_id = $tickets->user_id;
|
$user_id = $tickets->user_id;
|
||||||
$user = User::where('id', '=', $user_id)->first();
|
$user = User::where('id', '=', $user_id)->first();
|
||||||
@@ -2477,7 +2477,7 @@ class TicketController extends Controller
|
|||||||
return "<input type='checkbox' name='select_all[]' id='".$ticket->id."' onclick='someFunction(this.id)' class='selectval icheckbox_flat-blue' value='".$ticket->id."'></input>";
|
return "<input type='checkbox' name='select_all[]' id='".$ticket->id."' onclick='someFunction(this.id)' class='selectval icheckbox_flat-blue' value='".$ticket->id."'></input>";
|
||||||
})
|
})
|
||||||
->addColumn('subject', function ($ticket) {
|
->addColumn('subject', function ($ticket) {
|
||||||
$subject = Ticket_Thread::where('ticket_id', '=', $ticket->id)->first();
|
$subject = Ticket_Thread::where('ticket_id', '=', $ticket->id)->orderBy('id')->first();
|
||||||
if (isset($subject->title)) {
|
if (isset($subject->title)) {
|
||||||
$string = str_limit($subject->getSubject(), 20);
|
$string = str_limit($subject->getSubject(), 20);
|
||||||
} else {
|
} else {
|
||||||
|
@@ -71,7 +71,7 @@ class="active"
|
|||||||
?> >
|
?> >
|
||||||
<td><input type="checkbox" class="icheckbox_flat-blue" name="select_all[]" value="{{$ticket->id}}"/></td>
|
<td><input type="checkbox" class="icheckbox_flat-blue" name="select_all[]" value="{{$ticket->id}}"/></td>
|
||||||
<?php
|
<?php
|
||||||
$title = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->first();
|
$title = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->orderBy('id')->first();
|
||||||
$string = strip_tags($title->title);
|
$string = strip_tags($title->title);
|
||||||
if (strlen($string) > 40) {
|
if (strlen($string) > 40) {
|
||||||
$stringCut = substr($string, 0, 40);
|
$stringCut = substr($string, 0, 40);
|
||||||
|
Reference in New Issue
Block a user