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) {