Skip to content
Snippets Groups Projects
Commit ec6bf8aa authored by Monish Deb's avatar Monish Deb Committed by eileen
Browse files

#2105: Groups children now get shown with SPAN CSS error

parent 4504e78b
Branches
Tags
No related merge requests found
......@@ -88,7 +88,7 @@ class CRM_Contact_Form_Edit_TagsAndGroups {
}
if ($groupID || !empty($group)) {
$groups = CRM_Contact_BAO_Group::getGroupsHierarchy($ids);
$groups = CRM_Contact_BAO_Group::getGroupsHierarchy($ids, NULL, '- ');
$attributes['skiplabel'] = TRUE;
$elements = [];
......
......@@ -49,7 +49,7 @@ class CRM_Contact_Form_Search_Basic extends CRM_Contact_Form_Search {
// add select for groups
// Get hierarchical listing of groups, respecting ACLs for CRM-16836.
$groupHierarchy = CRM_Contact_BAO_Group::getGroupsHierarchy($this->_group, NULL, '  ');
$groupHierarchy = CRM_Contact_BAO_Group::getGroupsHierarchy($this->_group, NULL, '- ');
if (!empty($searchOptions['groups'])) {
$this->addField('group', [
'entity' => 'group_contact',
......
......@@ -42,7 +42,7 @@ class CRM_Contact_Form_Search_Criteria {
// multiselect for groups
if ($form->_group) {
// Arrange groups into hierarchical listing (child groups follow their parents and have indentation spacing in title)
$groupHierarchy = CRM_Contact_BAO_Group::getGroupsHierarchy($form->_group, NULL, '  ', TRUE);
$groupHierarchy = CRM_Contact_BAO_Group::getGroupsHierarchy($form->_group, NULL, '- ', TRUE);
$form->add('select', 'group', ts('Groups'), $groupHierarchy, FALSE,
['id' => 'group', 'multiple' => 'multiple', 'class' => 'crm-select2']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment