Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Removed duplicated 't' param on the static gantt query

Aleix Suau388894237262
diff --git a/frontend/src/app/components/wp-query-select/wp-static-queries.service.ts b/frontend/src/app/components/wp-query-select/wp-static-queries.service.ts
index 2784fb2397f..5705acf069a 100644
--- a/frontend/src/app/components/wp-query-select/wp-static-queries.service.ts
+++ b/frontend/src/app/components/wp-query-select/wp-static-queries.service.ts
@@ -77,7 +77,7 @@ export class WorkPackageStaticQueriesService {
{
identifier: 'gantt',
label: this.text.gantt,
- query_props: `{"c":["id","type","subject","status","startDate","dueDate"],"tv":true,"tzl":"auto","tll":"{\\"left\\":\\"startDate\\",\\"right\\":\\"dueDate\\",\\"farRight\\":null}","hi":true,"g":"","t":"id:asc","t":"startDate:asc","f":[{"n":"status","o":"o","v":[]}]}`
+ query_props: `{"c":["id","type","subject","status","startDate","dueDate"],"tv":true,"tzl":"auto","tll":"{\\"left\\":\\"startDate\\",\\"right\\":\\"dueDate\\",\\"farRight\\":null}","hi":true,"g":"","t":"startDate:asc","f":[{"n":"status","o":"o","v":[]}]}`
},
{
identifier: 'recently_created',
@@ -118,9 +118,10 @@ export class WorkPackageStaticQueriesService {
let queryProps = JSON.parse(this.$state.params.query_props);
delete queryProps.pp;
delete queryProps.pa;
+ let queryPropsString = JSON.stringify(queryProps);
const matched = _.find(this.all, item =>
- item.query_props && item.query_props === JSON.stringify(queryProps)
+ item.query_props && item.query_props === queryPropsString
);
if (matched) {