Merge pull request #17580 from samuelsov/dev/core#1670
[civicrm-core.git] / CRM / UF / Form / Field.php
index 4476ef73038f0f61e76aeddb14f3813fd0cce3f6..d99adfe45130ee8d21556497d69ad21459423db3 100644 (file)
@@ -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];