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

fix: ensure form state is reset on submit

Kabiru Mwenja8da2669dd97d
diff --git a/frontend/src/stimulus/controllers/dynamic/work-packages/activities-tab/index.controller.ts b/frontend/src/stimulus/controllers/dynamic/work-packages/activities-tab/index.controller.ts
index 0ce1e598434..de05a4471dd 100644
--- a/frontend/src/stimulus/controllers/dynamic/work-packages/activities-tab/index.controller.ts
+++ b/frontend/src/stimulus/controllers/dynamic/work-packages/activities-tab/index.controller.ts
@@ -745,6 +745,7 @@ export default class IndexController extends Controller {
void this.submitForm(formData)
.then(({ html, headers }) => {
this.handleSuccessfulSubmission(html, headers);
+ this.formTarget.reset();
})
.catch((error) => {
console.error('Error saving activity:', error);