Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Critical
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.7.1
-
Fix Version/s: None
-
Component/s: Core CiviCRM
-
Labels:
-
Documentation Required?:None
-
Funding Source:Contributed Code
Description
When displaying civi groups via "Manage groups" and therefore via templates/CRM/Group/Form/Search.tpl the group titltes are shown as 'undefined' if a group has a parent and is self a parent. See attachment.
The tpl file seems to make use of a wrong object key in js in line 214:
if ( val.is_parent ) {
appendHTML += '<td class="crm-group-name crmf-title crm-editable ' + levelClass + '">' + '{/literal}<span class="collapsed show-children" title="{ts}show child groups{/ts}"/></span>{literal}' + val.group_name + '</td>';
}
which should presumably be
if ( val.is_parent ) {
appendHTML += '<td class="crm-group-name crmf-title crm-editable ' + levelClass + '">' + '{/literal}<span class="collapsed show-children" title="{ts}show child groups{/ts}"/></span>{literal}' + val.title + '</td>';
}
At least I can't see a reason why we shouldn't use title here.