From b5fbd569f6829d4a82b744b3ef8ba05e518fd0b7 Mon Sep 17 00:00:00 2001 From: larssandergreen Date: Fri, 23 Jun 2023 15:27:57 -0600 Subject: [PATCH] Don't show filtered NaN on Groups when 0 groups found --- CRM/Contact/BAO/Group.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Contact/BAO/Group.php b/CRM/Contact/BAO/Group.php index 002e12089f..746bd01798 100644 --- a/CRM/Contact/BAO/Group.php +++ b/CRM/Contact/BAO/Group.php @@ -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; } -- 2.25.1