projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ad8b9b
)
Don't show filtered NaN on Groups when 0 groups found
author
larssandergreen
<lars@wildsight.ca>
Fri, 23 Jun 2023 21:27:57 +0000
(15:27 -0600)
committer
larssandergreen
<lars@wildsight.ca>
Fri, 23 Jun 2023 21:27:57 +0000
(15:27 -0600)
CRM/Contact/BAO/Group.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Contact/BAO/Group.php
b/CRM/Contact/BAO/Group.php
index 002e12089f03b986a122cfe9b389200e3eb4636e..746bd01798811fb8f5e48254709fe8c192dc188b 100644
(file)
--- 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;
}