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
Milestones should not have a constraint for their dates simply because their duration is not editable
Henriette Darge97f1b746a58d
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 6d902b2af63..a1e80afc48c 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@@ -673,7 +673,7 @@ export class TeamPlannerComponent extends UntilDestroyedMixin implements OnInit,editable: durationEditable || resourceEditable,durationEditable,resourceEditable,- constraint: this.eventConstaints(workPackage, projectAssignables),+ constraint: this.eventConstraints(workPackage, projectAssignables),title: workPackage.subject,start: this.wpStartDate(workPackage),end: this.wpEndDate(workPackage),@@ -767,13 +767,13 @@ export class TeamPlannerComponent extends UntilDestroyedMixin implements OnInit,// they are forced to drag the wp to the exact same date in the others assignee row. This might be confusing.// Without these constraints however, users can drag the WP everywhere, thinking that they changed the date as well.// The WP then moves back to the original date when the calendar re-draws again. Also not optimal..- private eventConstaints(+ private eventConstraints(wp:WorkPackageResource,projectAssignables:{ [projectId:string]:string[] },):{ [key:string]:string|string[] } {const constraints:{ [key:string]:string|string[] } = {};- if (!this.calendar.eventDurationEditable(wp)) {+ if (!this.calendar.eventDurationEditable(wp) && !wp.date) {constraints.start = this.wpStartDate(wp);constraints.end = this.wpEndDate(wp);}