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
Unset end date if duration is cleared (fixes scenario 6)
Oliver Güntherc9020db9e02a
diff --git a/frontend/src/app/shared/components/datepicker/multi-date-modal/multi-date.modal.ts b/frontend/src/app/shared/components/datepicker/multi-date-modal/multi-date.modal.tsindex 18e209c7d1b..46b05fd52c3 100644--- a/frontend/src/app/shared/components/datepicker/multi-date-modal/multi-date.modal.ts+++ b/frontend/src/app/shared/components/datepicker/multi-date-modal/multi-date.modal.ts@@ -399,18 +399,18 @@ export class MultiDateModalComponent extends OpModalComponent implements AfterVihandleDurationFocusOut():void {// If we cleared duration or left it empty- // reset the value to what start and due are, if they too are set- if (!this.duration && this.dates.start && this.dates.end) {- this.dateUpdates$.next({- startDate: this.dates.start,- dueDate: this.dates.end,- });- } else if (this.duration && this.dates.start) {+ // reset the value and the due date+ if (!this.duration) {+ this.updateDate('end', null);+ return;+ }++ if (this.dates.start) {this.dateUpdates$.next({startDate: this.dates.start,duration: this.durationAsIso8601,});- } else if (this.duration && this.dates.end) {+ } else if (this.dates.end) {this.dateUpdates$.next({dueDate: this.dates.end,duration: this.durationAsIso8601,