FIX_CLIENT_NAME

This commit is contained in:
Srinivas-Saravanan 2025-03-31 14:26:19 +05:30
parent 81ba5155bd
commit 88868e9b68
2 changed files with 4 additions and 1 deletions

View File

@ -1332,6 +1332,7 @@
function assignLeadData() {
const lead_data = <?= json_encode(json_decode($lead_data['custom_fields'])) ?>;
var clientName = <?= json_encode($lead_data['client_name']) ?>;
var client_type = <?= isset($lead_data['client_type']) ? $lead_data['client_type'] : "" ?>;
var mobile = <?= isset($lead_data['client_type']) ? $lead_data['client_type'] : "" ?>;
var email = <?= isset($lead_data['client_type']) ? $lead_data['client_type'] : "" ?>;
@ -1358,7 +1359,7 @@
}
$("#client_type").val(client_type).trigger("change");
$("#insured_name").val(insured_name);
$("#insured_name").val(clientName);
$("#address1").val(lead_data.address);
}
}

View File

@ -16,6 +16,7 @@ class ExcelSanitizeHelperTest extends TestCase
"validString" => "HelloWorld",
"withNonPrintable" => "71030034240400000016",
"withWhitespace" => " Trim me ",
"withNonInBetween" => "Santosh\u00a0Badatya",
"nonStringValue" => 'Hello
World',
];
@ -23,6 +24,7 @@ World',
"validString" => "HelloWorld",
"withNonPrintable" => "71030034240400000016",
"withWhitespace" => "Trim me",
"withNonInBetween" => "Santosh Badatya",
"nonStringValue" => 'HelloWorld',
];
$result = ExcelSanitizeHelper::sanitizeArrayData($input);