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
[34433] Detect changes after catching errors on the form
Oliver Günther50165236dced
diff --git a/frontend/src/app/modules/time_entries/shared/modal/base.modal.ts b/frontend/src/app/modules/time_entries/shared/modal/base.modal.tsindex b0183b82eba..d81ccceff86 100644--- a/frontend/src/app/modules/time_entries/shared/modal/base.modal.ts+++ b/frontend/src/app/modules/time_entries/shared/modal/base.modal.ts@@ -53,7 +53,10 @@ export abstract class TimeEntryBaseModal extends OpModalComponent {this.editForm.save().then(() => this.reloadWorkPackageAndClose())- .catch(() => this.formInFlight = false);+ .catch(() => {+ this.formInFlight = false;+ this.cdRef.detectChanges();+ });}public get saveText() {@@ -79,5 +82,6 @@ export abstract class TimeEntryBaseModal extends OpModalComponent {}this.service.close();this.formInFlight = false;+ this.cdRef.detectChanges();}}