From adf9de83e04ed2f77a86df5144f84e24293dced5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Sch=C3=BCttler?= Date: Fri, 30 Sep 2016 12:40:03 +0200 Subject: [PATCH] CRM-19434 - fix notice errors for child groups ---------------------------------------- * CRM-19434: Manage Group page notice errors for child groups https://issues.civicrm.org/jira/browse/CRM-19434 --- CRM/Contact/BAO/Group.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CRM/Contact/BAO/Group.php b/CRM/Contact/BAO/Group.php index b3f3134cd6..ee0f3f19c2 100644 --- a/CRM/Contact/BAO/Group.php +++ b/CRM/Contact/BAO/Group.php @@ -793,8 +793,8 @@ class CRM_Contact_BAO_Group extends CRM_Contact_DAO_Group { $groupsDT = array(); $groupsDT['data'] = $groupList; - $groupsDT['recordsTotal'] = $params['total']; - $groupsDT['recordsFiltered'] = $params['total']; + $groupsDT['recordsTotal'] = !empty($params['total']) ? $params['total'] : NULL; + $groupsDT['recordsFiltered'] = !empty($params['total']) ? $params['total'] : NULL; return $groupsDT; } @@ -814,6 +814,7 @@ class CRM_Contact_BAO_Group extends CRM_Contact_DAO_Group { //$this->pagerAToZ( $whereClause, $params ); + $limit = ""; if (!empty($params['rowCount']) && $params['rowCount'] > 0 ) { -- 2.25.1