From c7dd7bd9a89b751e2352590555cd0a3c4fe8c944 Mon Sep 17 00:00:00 2001 From: VE10-Sanjeev Date: Mon, 8 Jan 2024 13:59:02 +0530 Subject: [PATCH] Notify : ps --- app/Models/NotificationModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/NotificationModel.php b/app/Models/NotificationModel.php index b8a1b0ed..12a59c59 100644 --- a/app/Models/NotificationModel.php +++ b/app/Models/NotificationModel.php @@ -174,7 +174,7 @@ public function customerGroupQueryExecution($queries){ public function getTempName($constant) { $db = \Config\Database::connect(); - $query = "SELECT * FROM templates WHERE template_name = '".$constant."'"; + $query = "SELECT * FROM templates WHERE isactive = 1 AND template_name = '".$constant."'"; // print_r($query);die; $result = $db->query($query)->getResultArray(); if (isset($result)) {