diff --git a/app/Views/policyRegisterModel.php b/app/Views/policyRegisterModel.php index a96c2299..bfc25850 100644 --- a/app/Views/policyRegisterModel.php +++ b/app/Views/policyRegisterModel.php @@ -1332,6 +1332,7 @@ function assignLeadData() { const lead_data = ; + var clientName = ; var client_type = ; var mobile = ; var email = ; @@ -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); } } diff --git a/tests/unit/ExcelSanitizeHelperTest.php b/tests/unit/ExcelSanitizeHelperTest.php index f098ece7..466c0f85 100644 --- a/tests/unit/ExcelSanitizeHelperTest.php +++ b/tests/unit/ExcelSanitizeHelperTest.php @@ -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);