Skip to content

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

Allow schedule manual parent wp on Gantt Chart

Aleix Suau8e06db5d39f5
diff --git a/frontend/src/app/components/wp-table/timeline/cells/wp-timeline-cell-mouse-handler.ts b/frontend/src/app/components/wp-table/timeline/cells/wp-timeline-cell-mouse-handler.ts
index 2de6f1fc8b7..31edb7cb5fe 100644
--- a/frontend/src/app/components/wp-table/timeline/cells/wp-timeline-cell-mouse-handler.ts
+++ b/frontend/src/app/components/wp-table/timeline/cells/wp-timeline-cell-mouse-handler.ts
@@ -149,7 +149,9 @@ export function registerWorkPackageMouseHandler(this:void,
return;
}
- if (!(wp.isLeaf && renderer.canMoveDates(wp))) {
+ const isEditable = (wp.isLeaf || wp.scheduleManually) && renderer.canMoveDates(wp);
+
+ if (!isEditable) {
cell.style.cursor = 'not-allowed';
return;
}