From 694bf4767e07da6b5b533a60e406db4beb0c5806 Mon Sep 17 00:00:00 2001 From: venba-Inspriron-3558 Date: Thu, 21 Aug 2025 17:16:16 +0530 Subject: [PATCH] BUG_in ticket fix --- app/Models/ThzMasterNotesModel.php | 3 ++- app/Views/thz_notes.php | 16 ++++++---------- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/app/Models/ThzMasterNotesModel.php b/app/Models/ThzMasterNotesModel.php index 8654a936..d2a7191f 100644 --- a/app/Models/ThzMasterNotesModel.php +++ b/app/Models/ThzMasterNotesModel.php @@ -88,6 +88,7 @@ class ThzMasterNotesModel extends Model $ticketTypeFilter = "AND ( thz_master_notes.notes_type = 'External' OR thz_master_notes.notes_type = 'Internal' ) "; } + $integer_ticket_id = (int)$thz_id; $notes_sql = "SELECT thz_master_notes.*, @@ -105,7 +106,7 @@ class ThzMasterNotesModel extends Model LEFT JOIN thz_master ON thz_master.thz_id = thz_master_notes.thz_id AND LOWER(thz_master_notes.notes_by) = 'user' - WHERE thz_master_notes.thz_id = '. (int)$thz_id .' + WHERE thz_master_notes.thz_id = ". $integer_ticket_id ." $ticketTypeFilter ORDER BY thz_master_notes.created_at ASC"; diff --git a/app/Views/thz_notes.php b/app/Views/thz_notes.php index bd524ada..7cc9747a 100644 --- a/app/Views/thz_notes.php +++ b/app/Views/thz_notes.php @@ -232,7 +232,7 @@