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
[#49680] Today button missing when selecting "Between specific dates" in baseline comparison
Dombi Attila80979de93cdd
diff --git a/frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline.component.ts b/frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline.component.tsindex 55055f32b26..bbe0780abe8 100644--- a/frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline.component.ts+++ b/frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline.component.ts@@ -214,13 +214,11 @@ export class OpBaselineComponent extends UntilDestroyedMixin implements OnInit {public setToday(key:string):void {const today = moment().format('YYYY-MM-DD');+ const from = key === 'from' ? today : this.selectedDates[0];// When setting the "from" date to today, the "to" date must also be set to today,// because we do not allow future dates, meaning "to" cannot be anything else but today.- if (key === 'from') {- this.selectedDates[0] = today;- }-- this.selectedDates[1] = today;+ const to = today;+ this.dateChange([from, to]);}public onSubmit(e:Event):void {