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

With removed form request, always update form for project, type

Oliver Günther39f5fefab0cb
diff --git a/frontend/src/app/components/wp-edit/work-package-changeset.ts b/frontend/src/app/components/wp-edit/work-package-changeset.ts
index 9060a9f210c..157cb5d0c50 100644
--- a/frontend/src/app/components/wp-edit/work-package-changeset.ts
+++ b/frontend/src/app/components/wp-edit/work-package-changeset.ts
@@ -6,11 +6,9 @@ export class WorkPackageChangeset extends ResourceChangeset<WorkPackageResource>
public setValue(key:string, val:any) {
super.setValue(key, val);
- // Update the form for fields that may alter the form itself
- // when the work package is new. Otherwise, the save request afterwards
- // will update the form automatically.
- if (this.pristineResource.isNew && (key === 'project' || key === 'type')) {
+ if (key === 'project' || key === 'type') {
this.form$.clear(`${key} changed in a new work package`);
+ this.getForm();
}
}