Don't show filtered NaN on Groups when 0 groups found
authorlarssandergreen <lars@wildsight.ca>
Fri, 23 Jun 2023 21:27:57 +0000 (15:27 -0600)
committerlarssandergreen <lars@wildsight.ca>
Fri, 23 Jun 2023 21:27:57 +0000 (15:27 -0600)
CRM/Contact/BAO/Group.php

index 002e12089f03b986a122cfe9b389200e3eb4636e..746bd01798811fb8f5e48254709fe8c192dc188b 100644 (file)
@@ -815,8 +815,8 @@ class CRM_Contact_BAO_Group extends CRM_Contact_DAO_Group {
 
     $groupsDT = [];
     $groupsDT['data'] = $groupList;
-    $groupsDT['recordsTotal'] = !empty($params['total']) ? $params['total'] : NULL;
-    $groupsDT['recordsFiltered'] = !empty($params['total']) ? $params['total'] : NULL;
+    $groupsDT['recordsTotal'] = !empty($params['total']) ? $params['total'] : 0;
+    $groupsDT['recordsFiltered'] = !empty($params['total']) ? $params['total'] : 0;
 
     return $groupsDT;
   }