Skip to content
Snippets Groups Projects
Commit a6948741 authored by deepak-srivastava's avatar deepak-srivastava
Browse files

Merge pull request #1714 from deepak-srivastava/profile

CRM-10128 - fix to address core fields like nickname, middle name, first...
parents 7f1204e6 55ff2e3f
Branches
Tags
No related merge requests found
......@@ -2136,6 +2136,21 @@ ORDER BY civicrm_email.is_primary DESC";
}
}
}
else if (in_array($key,
array('nick_name',
'job_title',
'middle_name',
'birth_date',
'gender',
'current_employer',
'individual_prefix',
'individual_suffix')) &&
($value == '' || !isset($value)) &&
($session->get('authSrc') & (CRM_Core_Permission::AUTH_SRC_CHECKSUM + CRM_Core_Permission::AUTH_SRC_LOGIN)) == 0) {
// CRM-10128: if auth source is not checksum / login && $value is blank, do not fill $data with empty value
// to avoid update with empty values
continue;
}
else {
$data[$key] = $value;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment