Observation/FOUR-14185: Pagination does not work if we have a filter with more than one page. by agustinbusso · Pull Request #6249 · ProcessMaker/processmaker

Expand Up @@ -391,7 +391,7 @@ export default { } return data; }, fetch() { fetch(navigateToFirstPage = false) { Vue.nextTick(() => { if (this.cancelToken) { this.cancelToken(); Expand All @@ -400,7 +400,7 @@ export default {
const CancelToken = ProcessMaker.apiClient.CancelToken;
const { pmql, filter, advancedFilter } = this.buildPmqlAndFilter(); const { pmql, filter, advancedFilter } = this.buildPmqlAndFilter(navigateToFirstPage);
// Load from our api client ProcessMaker.apiClient Expand Down Expand Up @@ -443,7 +443,7 @@ export default { }); }); }, buildPmqlAndFilter() { buildPmqlAndFilter(navigateToFirstPage) { let pmql = '';
if (this.pmql !== undefined) { Expand Down Expand Up @@ -472,7 +472,8 @@ export default { this.previousPmql = pmql;
const advancedFilter = this.getAdvancedFilter(); if (this.previousAdvancedFilter !== advancedFilter) {
if (this.previousAdvancedFilter !== advancedFilter && navigateToFirstPage) { this.page = 1; }
Expand Down