fix(filter): search limit by date range was not being applied
gitea/salix/pipeline/head This commit looks good Details

Refs: 3059
This commit is contained in:
Joan Sanchez 2021-09-21 15:49:59 +02:00
parent d41378a532
commit 08cba0a9c8
4 changed files with 5 additions and 6 deletions

View File

@ -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);

View File

@ -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);

View File

@ -1,5 +1,6 @@
<vn-crud-model
vn-id="model"
params="::$ctrl.filterParams"
url="Tickets/filter"
limit="20"
order="shippedDate DESC, shippedHour ASC, zoneLanding ASC, id">

View File

@ -5,9 +5,9 @@ export default class Ticket extends ModuleMain {
constructor() {
super();
this.filterParams = {
this.filterParams = this.fetchParams({
scopeDays: 1
};
});
}
fetchParams($params) {