Skip to content

Commit

Permalink
Merge pull request #26629 from larssandergreen/Group-count-NaN
Browse files Browse the repository at this point in the history
Don't show filtered from NaN on Groups when 0 groups found
  • Loading branch information
eileenmcnaughton authored Jun 23, 2023
2 parents 42aa04d + b5fbd56 commit 0f703f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CRM/Contact/BAO/Group.php
Original file line number Diff line number Diff line change
Expand Up @@ -815,8 +815,8 @@ public static function getGroupListSelector(&$params) {

$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;
}
Expand Down

0 comments on commit 0f703f6

Please sign in to comment.