Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-18001

Group titles undefined in groups list

    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.

      PR is: https://github.com/civicrm/civicrm-core/pull/7771

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              nielo Niels Heinemann
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: