From: Thomas Schüttler Date: Fri, 30 Sep 2016 10:40:03 +0000 (+0200) Subject: CRM-19434 - fix notice errors for child groups X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=adf9de83e04ed2f77a86df5144f84e24293dced5;p=civicrm-core.git 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 --- 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 ) {