correclty call v3 with filters and sortBy

pull/4159/head
Jens Ulferts 9 years ago
parent 15a1643bf5
commit 2de60ee9df
  1. 11
      frontend/app/components/api/api-work-packages/api-work-packages.service.ts

@ -49,11 +49,18 @@ export class ApiWorkPackagesService {
}
protected queryAsV3Params(offset:number, pageSize:number, query:api.ex.Query) {
const v3Filters = _.map(query.filters, (filter) => {
const newFilter = {};
newFilter[filter.name] = {operator: filter.operator, values: filter.values};
return newFilter;
});
const params = {
offset: offset,
pageSize: pageSize,
filters: [query.filters],
sortBy: query.sort_criteria,
filters: [v3Filters],
sortBy: [query.sort_criteria],
};
if (query.group_by) {

Loading…
Cancel
Save