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
end date is one day after the selected end date so we should reduce one day
bsatarnejad4ea3765168bc
diff --git a/frontend/src/app/features/calendar/wp-calendar/wp-calendar.component.ts b/frontend/src/app/features/calendar/wp-calendar/wp-calendar.component.tsindex 89338dca444..0d8089359f0 100644--- a/frontend/src/app/features/calendar/wp-calendar/wp-calendar.component.ts+++ b/frontend/src/app/features/calendar/wp-calendar/wp-calendar.component.ts@@ -314,10 +314,8 @@ export class WorkPackagesCalendarComponent extends UntilDestroyedMixin implement}private handleDateClicked(info:DateSelectArg) {- const startDay = new Date(info.start).getDate();- const endDay = new Date(info.end).getDate();- const duration = endDay - startDay;- const nonWorkingDays = duration !== 1 ? false : this.weekdayService.isNonWorkingDay(info.start);+ const due = moment(info.endStr).subtract(1, 'day').toDate();+ const nonWorkingDays = this.weekdayService.isNonWorkingDay(info.start) || this.weekdayService.isNonWorkingDay(due);const defaults = {startDate: info.startStr,diff --git a/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.ts b/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.tsindex 59dbf63aa46..3206cfed41b 100644--- a/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.ts+++ b/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.ts@@ -752,7 +752,8 @@ export class TeamPlannerComponent extends UntilDestroyedMixin implements OnInit,}private handleDateClicked(info:DateSelectArg) {- const nonWorkingDays = this.weekdayService.isNonWorkingDay(info.start) || this.weekdayService.isNonWorkingDay(info.end);+ const due = moment(info.endStr).subtract(1, 'day').toDate();+ const nonWorkingDays = this.weekdayService.isNonWorkingDay(info.start) || this.weekdayService.isNonWorkingDay(due);this.openNewSplitCreate(info.startStr,