compucorp / uk.co.compucorp.civicrm.pivotreport

CiviCRM Pivot table reporting solution
Other
8 stars 13 forks source link

FEMSSPRT-44: Fix Activity Report Problem on Loading #134

Closed lisandro-compucorp closed 3 years ago

lisandro-compucorp commented 3 years ago

Overview

This PR solved the error presented on Activity reports, which made the page keep loading indefinitely.

Before

On Reports > Pivot Report > Activity, the progress bar keep loading without end, with numbers greater than the 100% image-20210525-080405

After

The page finishes loading correctly.

Screen Shot 2021-06-14 at 21 49 49

Technical Details

The fix consists of not overriding the $page variable that is being passed on the getPaginatedResults method. This variable keeps track of the last page used for a giving index, when called in rebuildData method, on the same class. It should be reset to 0 only when the index change.