From 08cba0a9c83b3aabfa52700165ea357d84e7338e Mon Sep 17 00:00:00 2001 From: joan Date: Tue, 21 Sep 2021 15:49:59 +0200 Subject: [PATCH] fix(filter): search limit by date range was not being applied Refs: 3059 --- modules/monitor/back/methods/sales-monitor/salesFilter.js | 3 +-- modules/ticket/back/methods/ticket/filter.js | 3 +-- modules/ticket/front/main/index.html | 1 + modules/ticket/front/main/index.js | 4 ++-- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/modules/monitor/back/methods/sales-monitor/salesFilter.js b/modules/monitor/back/methods/sales-monitor/salesFilter.js index 6483a906a..1b56d87f7 100644 --- a/modules/monitor/back/methods/sales-monitor/salesFilter.js +++ b/modules/monitor/back/methods/sales-monitor/salesFilter.js @@ -115,9 +115,8 @@ module.exports = Self => { } }); const collegues = worker.collegues() || []; - collegues.forEach(collegue => { + for (let collegue of collegues) teamMembersId.push(collegue.collegueFk); - }); if (teamMembersId.length == 0) teamMembersId.push(userId); diff --git a/modules/ticket/back/methods/ticket/filter.js b/modules/ticket/back/methods/ticket/filter.js index 79006e77d..a015d2165 100644 --- a/modules/ticket/back/methods/ticket/filter.js +++ b/modules/ticket/back/methods/ticket/filter.js @@ -145,9 +145,8 @@ module.exports = Self => { }, myOptions); const collegues = worker.collegues() || []; - collegues.forEach(collegue => { + for (let collegue of collegues) teamMembersId.push(collegue.collegueFk); - }); if (teamMembersId.length == 0) teamMembersId.push(userId); diff --git a/modules/ticket/front/main/index.html b/modules/ticket/front/main/index.html index 590d33887..2e89f9b63 100644 --- a/modules/ticket/front/main/index.html +++ b/modules/ticket/front/main/index.html @@ -1,5 +1,6 @@ diff --git a/modules/ticket/front/main/index.js b/modules/ticket/front/main/index.js index 78334ba97..1df7518d4 100644 --- a/modules/ticket/front/main/index.js +++ b/modules/ticket/front/main/index.js @@ -5,9 +5,9 @@ export default class Ticket extends ModuleMain { constructor() { super(); - this.filterParams = { + this.filterParams = this.fetchParams({ scopeDays: 1 - }; + }); } fetchParams($params) {