From 7f0ee5822f9546f08a0468d159804dea56a94aca Mon Sep 17 00:00:00 2001
From: Kurund Jalmi <kurund@civicrm.org>
Date: Mon, 10 Jun 2013 18:09:21 +0530
Subject: [PATCH] we don't have paging for child groups hence we should show
 all children, rather than restricting to 25

---
 CRM/Group/Page/AJAX.php | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/CRM/Group/Page/AJAX.php b/CRM/Group/Page/AJAX.php
index 8a861835b4..f3b39c9bc9 100644
--- a/CRM/Group/Page/AJAX.php
+++ b/CRM/Group/Page/AJAX.php
@@ -42,12 +42,13 @@ class CRM_Group_Page_AJAX {
     if ( isset($params['parent_id']) ) {
       // requesting child groups for a given parent
       $params['page'] = 1; 
-      $params['rp']   = 25;
+      $params['rp']   = 0;
       $groups = CRM_Contact_BAO_Group::getGroupListSelector($params);
 
       echo json_encode($groups);
       CRM_Utils_System::civiExit();      
-    } else {      
+    }
+    else {
       $sortMapper = array(
         0 => 'groups.title', 1 => 'groups.id', 2 => 'createdBy.sort_name', 3 => '',
         4 => 'groups.group_type', 5 => 'groups.visibility',
-- 
GitLab