FIX_HR_CHANGES : RV
This commit is contained in:
parent
19e4e36076
commit
c12fa35557
@ -1613,12 +1613,14 @@ if (!function_exists('remap_default_age_ratio_into_relationship')) {
|
|||||||
if (!function_exists('check_dup_mobileno')) {
|
if (!function_exists('check_dup_mobileno')) {
|
||||||
function check_dup_mobileno(array $row, array $existing_mobilenos)
|
function check_dup_mobileno(array $row, array $existing_mobilenos)
|
||||||
{
|
{
|
||||||
|
if(!empty($row['12'])){
|
||||||
foreach ($existing_mobilenos as $k => $value) {
|
foreach ($existing_mobilenos as $k => $value) {
|
||||||
if (strtolower($row['5']) == 'self' && $row['12'] == $value['mobile']) {
|
if (strtolower($row['5']) == 'self' && $row['12'] == $value['mobile']) {
|
||||||
return array('status' => false, 'error' => "Duplicate Mobile No");
|
return array('status' => false, 'error' => "Duplicate Mobile No");
|
||||||
// break;
|
// break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return array('status' => true);
|
return array('status' => true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1626,12 +1628,14 @@ if (!function_exists('check_dup_mobileno')) {
|
|||||||
if (!function_exists('check_dup_email')) {
|
if (!function_exists('check_dup_email')) {
|
||||||
function check_dup_email(array $row, array $existing_mobilenos)
|
function check_dup_email(array $row, array $existing_mobilenos)
|
||||||
{
|
{
|
||||||
|
if(!empty($row['13'])){
|
||||||
foreach ($existing_mobilenos as $k => $value) {
|
foreach ($existing_mobilenos as $k => $value) {
|
||||||
if (strtolower($row['5']) == 'self' && $row['13'] == $value['email_corporate']) {
|
if (strtolower($row['5']) == 'self' && $row['13'] == $value['email_corporate']) {
|
||||||
return array('status' => false, 'error' => "Duplicate Email");
|
return array('status' => false, 'error' => "Duplicate Email");
|
||||||
// break;
|
// break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return array('status' => true);
|
return array('status' => true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user