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
Handle case of setting two values just within the datepicker
Oliver Güntherff239d27b696
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 6ac48da48db..18e209c7d1b 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@@ -509,7 +509,13 @@ export class MultiDateModalComponent extends OpModalComponent implements AfterVi// Write the dates to the input fieldsthis.dates.start = this.timezoneService.formattedISODate(dates[0]);this.dates.end = this.timezoneService.formattedISODate(dates[1]);- this.toggleCurrentActivatedField();++ if (this.currentlyActivatedDateField === 'duration') {+ this.durationActiveDateSelected(dates[0]);+ } else if (this.dates.start && this.dates.end) {+ this.dateUpdates$.next({ startDate: this.dates.start, dueDate: this.dates.end });+ this.toggleCurrentActivatedField();+ }}private handleSingleDateUpdate(selectedDate:Date) {