if (($session->get('authSrc') & (CRM_Core_Permission::AUTH_SRC_CHECKSUM + CRM_Core_Permission::AUTH_SRC_LOGIN)) == 0 &&
($value == '' || !isset($value))) {
continue;
- }
+ }
$valueId = NULL;
if (CRM_Utils_Array::value('customRecordValues', $params)) {
}
}
}
- else if (in_array($key,
- array('nick_name',
- 'job_title',
- 'middle_name',
- 'birth_date',
+ else if (in_array($key,
+ array('nick_name',
+ 'job_title',
+ 'middle_name',
+ 'birth_date',
'gender_id',
- 'current_employer',
- 'prefix_id',
+ 'current_employer',
+ 'prefix_id',
'suffix_id')) &&
($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
+ // 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;
}