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

No expand icons in manage groups screen

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Critical
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.6
    • Fix Version/s: 4.7.8
    • Component/s: None
    • Documentation Required?:
      None
    • Funding Source:
      Core Team Funds

      Description

      The manage groups screen lost the expand icons.

      I can see the reason but I don't understand it fully. In the datatable's drawCallback in templates/CRM/Group/Form/Search.tpl table rows with class crm-group-parent are selected to prepend the expand icon. The datatables AJAX call leads to getGroupListSelector in CRM/Contact/BAO/Group.php which removes the class if only parents are requested:

      if (!empty($params['parentsOnly'])) {
      foreach ($value['class'] as $id => $class) {
      if ($class == 'crm-group-parent')

      { unset($value['class'][$id]); }

      }
      }

      Is this a misunderstanding of parentsOnly? Any ideas to fix?

        Attachments

        1. manage_group.png
          20 kB
          Jitendra Purohit
        2. Screen Shot 2016-05-04 at 10.45.24 AM.png
          216 kB
          Laryn - CEDC.org
        3. Screen Shot 2016-05-04 at 10.46.01 AM.png
          110 kB
          Laryn - CEDC.org
        4. Screen Shot 2016-05-05 at 5.09.25 PM.png
          20 kB
          Laryn - CEDC.org

          Activity

            People

            • Assignee:
              monish.deb Monish Deb
              Reporter:
              nielo Niels Heinemann
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 30 minutes
                2h 30m