Skip to content
Snippets Groups Projects
Commit 7f0ee582 authored by Kurund Jalmi's avatar Kurund Jalmi
Browse files

we don't have paging for child groups hence we should show all children,...

we don't have paging for child groups hence we should show all children, rather than restricting to 25
parent 1a240413
No related branches found
Tags 4.3.4
No related merge requests found
......@@ -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',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment