From f0725b60a996259c818444eab4f0f9d2f868c19b Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 9 Nov 2020 16:44:49 -0500 Subject: [PATCH] Fix legacy handling for html_type Autocomplete-Select Legacy handling was returning "Autocomplete-Multi-Select" which was never a real html_type. --- api/v3/CustomField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v3/CustomField.php b/api/v3/CustomField.php index ecfe665fdd..346a1ec2be 100644 --- a/api/v3/CustomField.php +++ b/api/v3/CustomField.php @@ -179,7 +179,7 @@ function civicrm_api3_custom_field_get($params) { if (in_array($result['data_type'], $legacyDataTypes)) { $result['html_type'] = array_search($result['data_type'], $legacyDataTypes); } - if (!empty($result['serialize'])) { + if (!empty($result['serialize']) && $result['html_type'] !== 'Autocomplete-Select') { $result['html_type'] = str_replace('Select', 'Multi-Select', $result['html_type']); } } -- 2.25.1