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 the pristine resource in case returning previous change
Oliver Günther1df89e6ed92b
diff --git a/frontend/src/app/components/wp-new/wp-create.component.ts b/frontend/src/app/components/wp-new/wp-create.component.tsindex b56d6f0ea95..3fa686544d4 100644--- a/frontend/src/app/components/wp-new/wp-create.component.ts+++ b/frontend/src/app/components/wp-new/wp-create.component.ts@@ -118,7 +118,7 @@ export class WorkPackageCreateComponent extends UntilDestroyedMixin implements O.createdWorkPackage().then((changeset:WorkPackageChangeset) => {this.change = changeset;- this.newWorkPackage = changeset.projectedResource;+ this.newWorkPackage = changeset.pristineResource;this.cdRef.detectChanges();this.setTitle();diff --git a/frontend/src/app/modules/fields/edit/services/hal-resource-editing.service.ts b/frontend/src/app/modules/fields/edit/services/hal-resource-editing.service.tsindex b8975af6522..dd28444ca93 100644--- a/frontend/src/app/modules/fields/edit/services/hal-resource-editing.service.ts+++ b/frontend/src/app/modules/fields/edit/services/hal-resource-editing.service.ts@@ -195,6 +195,7 @@ export class HalResourceEditingService extends StateCacheService<ResourceChangesreturn this.edit<V, T>(resource);}+ changeset.pristineResource = resource;return changeset;}