diff --git a/app/Controllers/NotificationController.php b/app/Controllers/NotificationController.php index a3c8efe9..0dd29522 100755 --- a/app/Controllers/NotificationController.php +++ b/app/Controllers/NotificationController.php @@ -52,6 +52,7 @@ class NotificationController extends AdminController $form_data['subject'] = $this->request->getPost('subject'); $form_data['mail_content'] = $this->request->getPost('mailContent'); $form_data['client_id'] = $this->request->getPost('client_id'); + $form_data['mail_content_json'] = $this->request->getPost('mailJson'); $notificationModel = new NotificationModel(); $find_notification = $notificationModel->where('client_id',$form_data['client_id'])->where('template_name',$form_data['template_name'])->first(); diff --git a/app/Models/NotificationModel.php b/app/Models/NotificationModel.php index d78d2a69..edc3069d 100755 --- a/app/Models/NotificationModel.php +++ b/app/Models/NotificationModel.php @@ -4,9 +4,9 @@ namespace App\Models; use CodeIgniter\Model; -class NotificationModel extends Model +class NotificationModel extends Model { protected $table = 'notifications'; protected $primaryKey = 'id'; - protected $allowedFields = ["id","client_id","template_name","subject","mail_content","enabled","created_by","updated_by","is_active",]; + protected $allowedFields = ["id","client_id","template_name","subject","mail_content","enabled","created_by","updated_by","is_active",'mail_content_json']; } \ No newline at end of file diff --git a/app/Views/layout/header.php b/app/Views/layout/header.php index 8d7bd1f9..0fd77995 100755 --- a/app/Views/layout/header.php +++ b/app/Views/layout/header.php @@ -79,7 +79,10 @@ - +//srinivas + + +//srinivas
@@ -526,7 +549,7 @@
-