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

resolve the travis errors

bsatarnejad29700480e6e6
diff --git a/frontend/src/app/modules/common/back-routing/back-routing.service.ts b/frontend/src/app/modules/common/back-routing/back-routing.service.ts
index 6f4aaff9c46..12e860fbaab 100644
--- a/frontend/src/app/modules/common/back-routing/back-routing.service.ts
+++ b/frontend/src/app/modules/common/back-routing/back-routing.service.ts
@@ -52,9 +52,10 @@ export class BackRoutingService {
// Default: back to list
// When coming from a deep link or a create form
const baseRoute = this.backRoute?.baseRoute || this.$state.current.data.baseRoute || 'work-packages.partitioned.list';
- if (!this.backRoute) { this.$state.reload(); }
+ // if we are in the first state
+ if (!this.backRoute && baseRoute.includes('show')) { this.$state.reload(); }
else {
- if (this.backRoute.name.includes('new')) {
+ if (!this.backRoute || this.backRoute.name.includes('new')) {
this.$state.go(baseRoute, this.$state.params);
} else {
if (this.keepTab.isDetailsState(this.backRoute.parent)) {