if (array_key_exists($this->_type, $contactTypes)) {
$this->assign('contactId', $this->_entityId);
}
- if (!is_array($this->_subType) && strstr($this->_subType ?? '', CRM_Core_DAO::VALUE_SEPARATOR)) {
- CRM_Core_Error::deprecatedWarning('Using a CRM_Core_DAO::VALUE_SEPARATOR separated subType on civicrm/custom route is deprecated, use a comma-separated string instead.');
- $this->_subType = str_replace(CRM_Core_DAO::VALUE_SEPARATOR, ',', trim($this->_subType, CRM_Core_DAO::VALUE_SEPARATOR));
- }
$this->setGroupTree($this, $this->_subType, $this->_groupID, $this->_onlySubtype);
$this->assign('suppressForm', TRUE);
* @param string $subType
* @param int $gid
* @param bool $onlySubType
- * @param bool $getCachedTree
*
- * @return array
* @throws \CRM_Core_Exception
*/
- private function setGroupTree(&$form, $subType, $gid, $onlySubType = NULL, $getCachedTree = TRUE) {
+ private function setGroupTree(&$form, $subType, $gid, $onlySubType = NULL) {
$singleRecord = NULL;
if (!empty($form->_groupCount) && !empty($form->_multiRecordDisplay) && $form->_multiRecordDisplay == 'single') {
$singleRecord = $form->_groupCount;
$gid,
$subType,
$form->_subName,
- $getCachedTree,
+ TRUE,
$onlySubType,
FALSE,
CRM_Core_Permission::EDIT,
foreach ($keys as $key) {
$form->_groupTree[$key] = $groupTree[$key];
}
- return [$form, $groupTree];
}
else {
$form->_groupTree = $groupTree;
- return [$form, $groupTree];
}
}