From f708b86917999b76e537b0e5cfed6c93ae0be2b6 Mon Sep 17 00:00:00 2001 From: Noah Miller Date: Tue, 1 Sep 2020 15:23:25 -0700 Subject: [PATCH] dev/core#1974 - ChangeFieldType - "Select (w/serialize)" field should be treated like older "Multi-Select" fields --- CRM/Custom/Form/ChangeFieldType.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Custom/Form/ChangeFieldType.php b/CRM/Custom/Form/ChangeFieldType.php index 24650919ae..8ba794c5cc 100644 --- a/CRM/Custom/Form/ChangeFieldType.php +++ b/CRM/Custom/Form/ChangeFieldType.php @@ -54,6 +54,9 @@ class CRM_Custom_Form_ChangeFieldType extends CRM_Core_Form { $params = ['id' => $this->_id]; CRM_Core_BAO_CustomField::retrieve($params, $this->_values); + if ($this->_values['html_type'] == 'Select' && $this->_values['serialize']) { + $this->_values['html_type'] = 'Multi-Select'; + } $this->_htmlTypeTransitions = self::fieldTypeTransitions(CRM_Utils_Array::value('data_type', $this->_values), CRM_Utils_Array::value('html_type', $this->_values) ); -- 2.25.1