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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Replace empty string with "undefined" so that the uiSrefActive matches thie currently active query correctly (see #52758)
Henriette Darge6d5305820adc
diff --git a/frontend/src/app/features/boards/boards-sidebar/boards-menu.component.ts b/frontend/src/app/features/boards/boards-sidebar/boards-menu.component.tsindex 60c93515ec5..d879f650b6b 100644--- a/frontend/src/app/features/boards/boards-sidebar/boards-menu.component.ts+++ b/frontend/src/app/features/boards/boards-sidebar/boards-menu.component.ts@@ -1,7 +1,6 @@import {Component,HostBinding,- Injector,OnInit,} from '@angular/core';import { Observable } from 'rxjs';@@ -14,7 +13,6 @@ import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { MainMenuNavigationService } from 'core-app/core/main-menu/main-menu-navigation.service';import { CurrentUserService } from 'core-app/core/current-user/current-user.service';import { I18nService } from 'core-app/core/i18n/i18n.service';-import { OpModalService } from 'core-app/shared/components/modal/modal.service';import { IOpSidemenuItem } from 'core-app/shared/components/sidemenu/sidemenu.component';import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';@@ -39,7 +37,7 @@ export class BoardsMenuComponent extends UntilDestroyedMixin implements OnInit {uiSref: 'boards.partitioned.show',uiParams: {board_id: board.id,- query_props: '',+ query_props: undefined,projects: 'projects',projectPath: this.currentProject.identifier,},@@ -70,7 +68,7 @@ export class BoardsMenuComponent extends UntilDestroyedMixin implements OnInit {readonly mainMenuService:MainMenuNavigationService,readonly currentUserService:CurrentUserService,readonly I18n:I18nService,- readonly pathHelper:PathHelperService+ readonly pathHelper:PathHelperService,) {super();}diff --git a/frontend/src/app/shared/components/op-view-select/op-static-queries.service.ts b/frontend/src/app/shared/components/op-view-select/op-static-queries.service.tsindex f5392bc9838..144e69b70c2 100644--- a/frontend/src/app/shared/components/op-view-select/op-static-queries.service.ts+++ b/frontend/src/app/shared/components/op-view-select/op-static-queries.service.ts@@ -112,14 +112,14 @@ export class StaticQueriesService {{title: this.text.all_open,uiSref: 'work-packages',- uiParams: { query_id: '', query_props: '' },+ uiParams: { query_id: undefined, query_props: undefined },view: 'WorkPackagesTable',},{title: this.text.latest_activity,uiSref: 'work-packages',uiParams: {- query_id: '',+ query_id: undefined,query_props: '{"c":["id","subject","type","status","assignee","updatedAt"],"hi":false,"g":"","t":"updatedAt:desc","f":[{"n":"status","o":"*","v":[]}]}',},view: 'WorkPackagesTable',@@ -128,7 +128,7 @@ export class StaticQueriesService {title: this.text.recently_created,uiSref: 'work-packages',uiParams: {- query_id: '',+ query_id: undefined,query_props: '{"c":["id","subject","type","status","assignee","createdAt"],"hi":false,"g":"","t":"createdAt:desc","f":[{"n":"status","o":"o","v":[]}]}',},view: 'WorkPackagesTable',@@ -137,7 +137,7 @@ export class StaticQueriesService {title: this.text.overdue,uiSref: 'work-packages',uiParams: {- query_id: '',+ query_id: undefined,query_props: '{"c":["id","type","subject","status","startDate","dueDate","duration"],"hi":false,"g":"","t":"createdAt:desc","f":[{"n":"dueDate","o":"<t-","v":["1"]},{"n":"status","o":"o","v":[]}]}',},view: 'WorkPackagesTable',@@ -146,7 +146,7 @@ export class StaticQueriesService {title: this.text.all_open,uiSref: 'bim.partitioned.list',uiParams: {- query_id: '',+ query_id: undefined,query_props: '{"c":["id","subject","bcfThumbnail","type","status","assignee","updatedAt"],"t":"id:desc"}',},view: 'Bim',@@ -155,7 +155,7 @@ export class StaticQueriesService {title: this.text.latest_activity,uiSref: 'bim.partitioned.list',uiParams: {- query_id: '',+ query_id: undefined,query_props: '{"c":["id","subject","bcfThumbnail","type","status","assignee","updatedAt"],"t":"updatedAt:desc","f":[{"n":"status","o":"o","v":[]}]}',},view: 'Bim',@@ -164,7 +164,7 @@ export class StaticQueriesService {title: this.text.recently_created,uiSref: 'bim.partitioned.list',uiParams: {- query_id: '',+ query_id: undefined,query_props: '{"c":["id","subject","bcfThumbnail","type","status","assignee","createdAt"],"t":"createdAt:desc","f":[{"n":"status","o":"o","v":[]}]}',},view: 'Bim',@@ -210,7 +210,7 @@ export class StaticQueriesService {title: this.text.created_by_me,uiSref: 'work-packages',uiParams: {- query_id: '',+ query_id: undefined,query_props: '{"c":["id","subject","type","status","assignee","updatedAt"],"hi":false,"g":"","t":"updatedAt:desc,id:asc","f":[{"n":"status","o":"o","v":[]},{"n":"author","o":"=","v":["me"]}]}',},view: 'WorkPackagesTable',@@ -219,7 +219,7 @@ export class StaticQueriesService {title: this.text.assigned_to_me,uiSref: 'work-packages',uiParams: {- query_id: '',+ query_id: undefined,query_props: '{"c":["id","subject","type","status","author","updatedAt"],"hi":false,"g":"","t":"updatedAt:desc,id:asc","f":[{"n":"status","o":"o","v":[]},{"n":"assigneeOrGroup","o":"=","v":["me"]}]}',},view: 'WorkPackagesTable',@@ -234,7 +234,7 @@ export class StaticQueriesService {title: this.text.created_by_me,uiSref: 'bim.partitioned.list',uiParams: {- query_id: '',+ query_id: undefined,query_props: '{"c":["id","subject","bcfThumbnail","type","status","assignee","updatedAt"],"t":"id:desc","f":[{"n":"status","o":"o","v":[]},{"n":"author","o":"=","v":["me"]}]}',},view: 'Bim',@@ -243,7 +243,7 @@ export class StaticQueriesService {title: this.text.assigned_to_me,uiSref: 'bim.partitioned.list',uiParams: {- query_id: '',+ query_id: undefined,query_props: '{"c":["id","subject","bcfThumbnail","type","status","author","updatedAt"],"t":"id:desc","f":[{"n":"status","o":"o","v":[]},{"n":"assigneeOrGroup","o":"=","v":["me"]}]}',},view: 'Bim',@@ -259,7 +259,7 @@ export class StaticQueriesService {return {uiSref: 'work-packages',uiParams: {- query_id: '',+ query_id: undefined,query_props: '{"c":["id","subject","type","project","sharedWithUsers"],"hi":false,"g":"","t":"updatedAt:desc,id:asc","f":[{"n":"sharedWithUser","o":"*","v":[]}]}',},};diff --git a/frontend/src/app/shared/components/op-view-select/op-view-select.component.ts b/frontend/src/app/shared/components/op-view-select/op-view-select.component.tsindex c584e37596e..1225fb10014 100644--- a/frontend/src/app/shared/components/op-view-select/op-view-select.component.ts+++ b/frontend/src/app/shared/components/op-view-select/op-view-select.component.ts@@ -230,7 +230,7 @@ export class ViewSelectComponent extends UntilDestroyedMixin implements OnInit {return {title: query.title,uiSref: this.baseRoute,- uiParams: { query_id: idFromLink(query.href), query_props: '' },+ uiParams: { query_id: idFromLink(query.href), query_props: undefined },uiOptions: { reload: true },};}