Skip to content

Commit

Permalink
Merge pull request #12149 from JMAConsulting/fgb
Browse files Browse the repository at this point in the history
Fix (unreleased) regression on report pager
  • Loading branch information
eileenmcnaughton authored May 16, 2018
2 parents 54387e6 + a46a7e8 commit 935ad17
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CRM/Report/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -2750,6 +2750,9 @@ public function unselectedSectionColumns() {
*/
public function buildRows($sql, &$rows) {
$dao = CRM_Core_DAO::executeQuery($sql);
if (stristr($this->_select, 'SQL_CALC_FOUND_ROWS')) {
$this->_rowsFound = CRM_Core_DAO::singleValueQuery('SELECT FOUND_ROWS()');
}
CRM_Core_DAO::reenableFullGroupByMode();
if (!is_array($rows)) {
$rows = array();
Expand Down

0 comments on commit 935ad17

Please sign in to comment.