}
}
- if (!defined('CIVICRM_GROUPTREE')) {
- $group = CRM_Utils_Array::value('group', $this->_formValues);
- if ($group && !is_array($group)) {
- unset($this->_formValues['group']);
- $this->_formValues['group'][$group] = 1;
- }
+ $group = CRM_Utils_Array::value('group', $this->_formValues);
+ if ($group && !is_array($group)) {
+ unset($this->_formValues['group']);
+ $this->_formValues['group'][$group] = 1;
+ }
- if ($group && is_array($group)) {
- unset($this->_formValues['group']);
- foreach ($group as $notImportant => $groupID) {
- $this->_formValues['group'][$groupID] = 1;
- }
+ if ($group && is_array($group)) {
+ unset($this->_formValues['group']);
+ foreach ($group as $groupID) {
+ $this->_formValues['group'][$groupID] = 1;
}
}
+
}
CRM_Core_BAO_CustomValue::fixCustomFieldValue($this->_formValues);