From c12fa35557663526bc7655ea136a3a837a6d4ab3 Mon Sep 17 00:00:00 2001 From: "venkatesh.r" Date: Tue, 22 Jul 2025 09:50:19 +0530 Subject: [PATCH] FIX_HR_CHANGES : RV --- app/Helpers/excel_util_helper.php | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/app/Helpers/excel_util_helper.php b/app/Helpers/excel_util_helper.php index a2695618..3b52ce83 100755 --- a/app/Helpers/excel_util_helper.php +++ b/app/Helpers/excel_util_helper.php @@ -1612,11 +1612,13 @@ if (!function_exists('remap_default_age_ratio_into_relationship')) { if (!function_exists('check_dup_mobileno')) { function check_dup_mobileno(array $row, array $existing_mobilenos) - { - foreach ($existing_mobilenos as $k => $value) { - if (strtolower($row['5']) == 'self' && $row['12'] == $value['mobile']) { - return array('status' => false, 'error' => "Duplicate Mobile No"); - // break; + { + if(!empty($row['12'])){ + foreach ($existing_mobilenos as $k => $value) { + if (strtolower($row['5']) == 'self' && $row['12'] == $value['mobile']) { + return array('status' => false, 'error' => "Duplicate Mobile No"); + // break; + } } } return array('status' => true); @@ -1626,10 +1628,12 @@ if (!function_exists('check_dup_mobileno')) { if (!function_exists('check_dup_email')) { function check_dup_email(array $row, array $existing_mobilenos) { - foreach ($existing_mobilenos as $k => $value) { - if (strtolower($row['5']) == 'self' && $row['13'] == $value['email_corporate']) { - return array('status' => false, 'error' => "Duplicate Email"); - // break; + if(!empty($row['13'])){ + foreach ($existing_mobilenos as $k => $value) { + if (strtolower($row['5']) == 'self' && $row['13'] == $value['email_corporate']) { + return array('status' => false, 'error' => "Duplicate Email"); + // break; + } } } return array('status' => true);