Bug fix patches

- Added language translation words in langusge files
- Updated bugsnage API key
- Fixed PHP7.2 issues in organization view and ticket reply reading
This commit is contained in:
Manish Verma
2018-09-05 16:35:13 +05:30
committed by Manish Verma
parent 334a7a8299
commit b288ec57a3
4 changed files with 14 additions and 6 deletions

View File

@@ -904,7 +904,7 @@ class TicketController extends Controller
$find_number = Tickets::where('ticket_number', '=', $new_subject)->first();
$thread_body = explode('---Reply above this line---', $body);
$body = $thread_body[0];
if (count($find_number) > 0) {
if ($find_number->count() > 0) {
$id = $find_number->id;
$ticket_number = $find_number->ticket_number;
if ($find_number->status > 1) {

View File

@@ -13,7 +13,7 @@ return [
| which should receive your application's uncaught exceptions.
|
*/
'api_key' => 'd946b1758d755ba6f0095348a4924a63',
'api_key' => '280264db78f78f46e37169b2b65bed2d',
/*
|--------------------------------------------------------------------------

View File

@@ -1634,4 +1634,12 @@ return [
'do-not-refresh' => '(Please do not use "Refresh" or "Back" button)',
'cleaning-in-progress' => 'Cleaning in progress, please wait while we are cleaning your database',
'cleaning-database' => 'Cleaning dummy data from database.',
'native-name' => 'Native name',
'choose' => 'Choose',
'going-overdue-today' => 'This ticket will become overdue today.',
'ticket_has_attachments' => 'This ticket contains attachment(s)',
'is_overdue' => 'This ticket is marked as overdue',
'ticket_has_collaborator' => 'This ticket has collaborator(s)',
'ticket_created_source' => 'This ticket is created via :source',
'ticket-has-x-priority' => 'This ticket has :priority priority',
];

View File

@@ -208,8 +208,8 @@ class="active"
$title = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->first();
$string = strip_tags($title->title);
// check atatchments
$attachments = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id', '=', $title->id)->first();
$attach = count($attachments);
$attachments = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id', '=', $title->id)->count();
$attach = $attachments;
if (strlen($string) > 40) {
$stringCut = substr($string, 0, 40);
@@ -449,8 +449,8 @@ class="active"
$title = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->first();
$string = strip_tags($title->title);
// check atatchments
$attachments = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id', '=', $title->id)->first();
$attach = count($attachments);
$attachments = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id', '=', $title->id)->count();
$attach = $attachments;
if (strlen($string) > 40) {
$stringCut = substr($string, 0, 40);