CRM-19434 - fix notice errors for child groups
authorThomas Schüttler <tschuettler@oxfam.de>
Fri, 30 Sep 2016 10:40:03 +0000 (12:40 +0200)
committerThomas Schüttler <tschuettler@oxfam.de>
Fri, 30 Sep 2016 10:40:03 +0000 (12:40 +0200)
----------------------------------------
* CRM-19434: Manage Group page notice errors for child groups
  https://issues.civicrm.org/jira/browse/CRM-19434

CRM/Contact/BAO/Group.php

index b3f3134cd6669e0ea30f28a9b182f0b0a0052a0a..ee0f3f19c22f2c62d3ba9ef899e57c49586dad44 100644 (file)
@@ -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
     ) {