if (array_key_exists($this->_type, $contactTypes)) {
$this->assign('contactId', $this->_entityId);
}
- $this->setGroupTree($this, $subType, $groupID, $onlySubType);
-
- $this->assign('suppressForm', TRUE);
- $this->controller->_generateQFKey = FALSE;
- }
-
- /**
- * Add the group data as a formatted array to the form.
- *
- * This was split off from a shared function.
- *
- * @param self $form
- * @param string $subType
- * @param int $gid
- * @param bool $onlySubType
- *
- * @throws \CRM_Core_Exception
- */
- private function setGroupTree(&$form, $subType, $gid, $onlySubType = NULL) {
$singleRecord = NULL;
if (!empty($form->_groupCount) && !empty($form->_multiRecordDisplay) && $form->_multiRecordDisplay == 'single') {
$singleRecord = $form->_groupCount;
$groupTree = CRM_Core_BAO_CustomGroup::getTree($form->_type,
NULL,
$form->_entityId,
- $gid,
+ $groupID,
$subType,
$form->_subName,
TRUE,
else {
$form->_groupTree = $groupTree;
}
+
+ $this->assign('suppressForm', TRUE);
+ $this->controller->_generateQFKey = FALSE;
}
/**