diff --git a/app/Helpers/excel_util_helper.php b/app/Helpers/excel_util_helper.php index 67ffc9b1..99c08108 100755 --- a/app/Helpers/excel_util_helper.php +++ b/app/Helpers/excel_util_helper.php @@ -1769,7 +1769,7 @@ if(!function_exists('check_dup_mobileno')) { foreach($existing_mobilenos as $k => $value) { - if ($row['12'] == $value['mobile']) { + if (strtolower($row['5']) == 'self' && $row['12'] == $value['mobile']) { return array('status' => false,'error' => "Duplicate Mobile No"); // break; } @@ -1784,7 +1784,7 @@ if(!function_exists('check_dup_email')) { foreach($existing_mobilenos as $k => $value) { - if ($row['13'] == $value['email_corporate']) { + if (strtolower($row['5']) == 'self' && $row['13'] == $value['email_corporate']) { return array('status' => false,'error' => "Duplicate Email"); // break; }