Fix_clientnotificationvalidation

This commit is contained in:
sanjeev.p 2026-01-29 17:27:25 +05:30
parent 0ea12fb177
commit b84d8d82d7
2 changed files with 17 additions and 2 deletions

View File

@ -52,6 +52,7 @@ class NotificationController extends AdminController
// Create Or Update the Notification // Create Or Update the Notification
public function createNotification() public function createNotification()
{ {
$form_data['template_name'] = $this->camelCaseToSnakeCase($this->request->getPost('template_name')); $form_data['template_name'] = $this->camelCaseToSnakeCase($this->request->getPost('template_name'));
$form_data['subject'] = $this->request->getPost('subject'); $form_data['subject'] = $this->request->getPost('subject');
$form_data['mail_content'] = $this->request->getPost('mailContent'); $form_data['mail_content'] = $this->request->getPost('mailContent');

View File

@ -1524,7 +1524,7 @@
<form class="ajax" onsubmit="submitAttachmentForm(event, this)"> <form class="ajax" onsubmit="submitAttachmentForm(event, this)">
<div style="display:flex; align-items:center; gap:10px; white-space:nowrap;"> <div style="display:flex; align-items:center; gap:10px; white-space:nowrap;">
<div> <div>
<input type="file" name="file" required <input type="file" name="file"
style="width:100%; min-width:160px; style="width:100%; min-width:160px;
padding: 0 !important; padding: 0 !important;
background-color: transparent !important; background-color: transparent !important;
@ -1548,7 +1548,7 @@
newRow.innerHTML = `<td><form class="ajax" onsubmit="submitAttachmentForm(event, this)"> newRow.innerHTML = `<td><form class="ajax" onsubmit="submitAttachmentForm(event, this)">
<div style="display:flex; align-items:center; gap:10px; white-space:nowrap;"> <div style="display:flex; align-items:center; gap:10px; white-space:nowrap;">
<div> <div>
<input type="file" name="file" required <input type="file" name="file"
style="width:100%; min-width:160px; style="width:100%; min-width:160px;
padding: 0 !important; padding: 0 !important;
background-color: transparent !important; background-color: transparent !important;
@ -2009,6 +2009,8 @@
type: "POST", type: "POST",
data: formData, data: formData,
dataType: 'json', dataType: 'json',
processData: false,
contentType: false,
success: function(res) { success: function(res) {
$('#account_maneger_summary_mail_modal').find('.close').click(); $('#account_maneger_summary_mail_modal').find('.close').click();
toastr.success('Template saved successfully'); toastr.success('Template saved successfully');
@ -2069,6 +2071,8 @@
type: "POST", type: "POST",
data: formData, data: formData,
dataType: 'json', dataType: 'json',
processData: false,
contentType: false,
success: function(res) { success: function(res) {
$('#member_welcome_mail_modal').find('.close').click(); $('#member_welcome_mail_modal').find('.close').click();
toastr.success('Template saved successfully'); toastr.success('Template saved successfully');
@ -2129,6 +2133,8 @@
type: "POST", type: "POST",
data: formData, data: formData,
dataType: 'json', dataType: 'json',
processData: false,
contentType: false,
success: function(res) { success: function(res) {
$('#member_reminder_mail_modal').find('.close').click(); $('#member_reminder_mail_modal').find('.close').click();
toastr.success('Template saved successfully'); toastr.success('Template saved successfully');
@ -2189,6 +2195,8 @@
type: "POST", type: "POST",
data: formData, data: formData,
dataType: 'json', dataType: 'json',
processData: false,
contentType: false,
success: function(res) { success: function(res) {
$('#member_ecard_mail_modal').find('.close').click(); $('#member_ecard_mail_modal').find('.close').click();
toastr.success('Template saved successfully'); toastr.success('Template saved successfully');
@ -2248,6 +2256,8 @@
type: "POST", type: "POST",
data: formData, data: formData,
dataType: 'json', dataType: 'json',
processData: false,
contentType: false,
success: function(res) { success: function(res) {
$('#member_common_mail_modal').find('.close').click(); $('#member_common_mail_modal').find('.close').click();
toastr.success('Template saved successfully'); toastr.success('Template saved successfully');
@ -2308,6 +2318,8 @@
type: "POST", type: "POST",
data: formData, data: formData,
dataType: 'json', dataType: 'json',
processData: false,
contentType: false,
success: function(res) { success: function(res) {
$('#member_review_and_summary_mail_modal').find('.close').click(); $('#member_review_and_summary_mail_modal').find('.close').click();
toastr.success('Template saved successfully'); toastr.success('Template saved successfully');
@ -2368,6 +2380,8 @@
type: "POST", type: "POST",
data: formData, data: formData,
dataType: 'json', dataType: 'json',
processData: false,
contentType: false,
success: function(res) { success: function(res) {
$('#client_hr_summary_mail_modal').find('.close').click(); $('#client_hr_summary_mail_modal').find('.close').click();
toastr.success('Template saved successfully'); toastr.success('Template saved successfully');