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
Send start/due date on NWD changes if only that set
Oliver Günther9c97812ea918
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 4de6cf55343..7ce6a0dac62 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@@ -81,8 +81,11 @@ type StartUpdate = { startDate:string };type EndUpdate = { dueDate:string };type DurationUpdate = { duration:string|number|null };type DateUpdate = { date:string };+export type FieldUpdates =- (StartUpdate&EndUpdate)+ StartUpdate+ |EndUpdate+ |(StartUpdate&EndUpdate)|(StartUpdate&DurationUpdate)|(EndUpdate&DurationUpdate)|DateUpdate;@@ -294,6 +297,16 @@ export class MultiDateModalComponent extends OpModalComponent implements AfterVithis.dateUpdates$.next({ startDate: this.dates.start, duration: this.durationAsIso8601 });}+ // If only one of the dates is set, sent that+ // Resent the current start and duration so that the end date is calculated+ if (!!this.dates.start && !this.dates.end) {+ this.dateUpdates$.next({ startDate: this.dates.start });+ }++ if (!!this.dates.end && !this.dates.start) {+ this.dateUpdates$.next({ dueDate: this.dates.end });+ }+this.cdRef.detectChanges();}