Reproduce
1. Create a task filter using the REST API with a task query which contains sorting parameters like:
POST /engine-rest/filter/create { "name": "Filter With Sorting", "owner": "demo", "query": { "active": "true", "caseInstanceVariables": [], "processVariables": [], "sorting": [ { "sortBy": "created", "sortOrder": "desc" } ], "taskVariables": [] }, "resourceType": "Task" }
2. Open Tasklist and edit the Filter "Filter With Sorting". It exists a criteria which without a name and the value [object Object].
3. Try to save the filter without modification. An exception occurs as the tasklist tries to send a request like (note the invalid sorting value):
{
"id": "2e39347f-679f-11e5-8d24-02421d6f7dbe",
"name": "Filter With Sorting",
"properties": {
"color": "#EEEEEE",
"priority": 0,
"refresh": false,
"showUndefinedVariable": false
},
"query": {
"active": "true",
"sorting": "[object Object]"
},
"resourceType": "Task"
}
Expected Behavior
Tasklist handles the sorting parameters without modification and doesn't show a criteria without a name.
This is the controller panel for Smart Panels app
- is related to
-
CAM-8279 Tasklist can handle filter with sorting parameters
-
- Closed
-