mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Bug fix for issue #3698
* Rewrite routine for building the My Cards hierarchical list * Use a separate publication for retrieving My Cards * Fix bug with limit and skip projectsion
This commit is contained in:
parent
769bb7a55d
commit
07a3301414
5 changed files with 104 additions and 176 deletions
|
|
@ -52,7 +52,9 @@ export class QueryParams {
|
|||
|
||||
hasOperator(operator) {
|
||||
return (
|
||||
this.params[operator] !== undefined && this.params[operator].length > 0
|
||||
this.params[operator] !== undefined &&
|
||||
(this.params[operator].length === undefined ||
|
||||
this.params[operator].length > 0)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
@ -68,7 +70,11 @@ export class QueryParams {
|
|||
}
|
||||
|
||||
getPredicate(operator) {
|
||||
return this.params[operator][0];
|
||||
if (typeof this.params[operator] === 'object') {
|
||||
return this.params[operator][0];
|
||||
} else {
|
||||
return this.params[operator];
|
||||
}
|
||||
}
|
||||
|
||||
getPredicates(operator) {
|
||||
|
|
@ -196,6 +202,10 @@ export class Query {
|
|||
return this.queryParams;
|
||||
}
|
||||
|
||||
setQueryParams(queryParams) {
|
||||
this.queryParams = queryParams;
|
||||
}
|
||||
|
||||
addPredicate(operator, predicate) {
|
||||
this.queryParams.addPredicate(operator, predicate);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue