Skip to content
Snippets Groups Projects
Commit b0e240d9 authored by eileen's avatar eileen
Browse files

#1861 fix failure to unset location_type_id when saving uffield

parent 755efeb8
Branches
Tags
No related merge requests found
......@@ -532,7 +532,7 @@ class CRM_UF_Form_Field extends CRM_Core_Form {
}
elseif ($params['field_name'][2] == 0) {
// 0 is Primary location type
$apiFormattedParams['location_type_id'] = NULL;
$apiFormattedParams['location_type_id'] = '';
}
if (!empty($params['field_name'][3])) {
$apiFormattedParams['phone_type_id'] = $params['field_name'][3];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment