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
Make up
Aleix Suauac465764c081
diff --git a/frontend/src/app/components/wp-table/drag-and-drop/actions/hierarchy-drag-action.service.ts b/frontend/src/app/components/wp-table/drag-and-drop/actions/hierarchy-drag-action.service.tsindex 9ec29fee8b4..e7008ee98cc 100644--- a/frontend/src/app/components/wp-table/drag-and-drop/actions/hierarchy-drag-action.service.ts+++ b/frontend/src/app/components/wp-table/drag-and-drop/actions/hierarchy-drag-action.service.ts@@ -46,7 +46,6 @@ export class HierarchyDragActionService extends TableDragActionService {// If the previous element is a relation row,// skip it until we find the real previous siblingconst isRelationRow = previous.className.indexOf(relationRowClass()) >= 0;- const droppedIntoCollapsedGroup = isInsideCollapsedGroup(next);if (isRelationRow) {let relationRoot = this.findRelationRowRoot(previous);@@ -59,6 +58,8 @@ export class HierarchyDragActionService extends TableDragActionService {let previousWpId = (previous as HTMLElement).dataset.workPackageId!;if (this.isHiearchyRoot(previous, previousWpId)) {+ const droppedIntoCollapsedGroup = isInsideCollapsedGroup(next);+if (droppedIntoCollapsedGroup) {return this.determineParent(previous);}@@ -97,8 +98,8 @@ export class HierarchyDragActionService extends TableDragActionService {const nextGroups = next && Array.from(next.classList).filter(listClass => listClass.includes('__hierarchy-group-')) || [];const previousWpId = (previous as HTMLElement).dataset.workPackageId!;const isLastElementOfGroup = !nextGroups.some(nextGroup => previousGroups.includes(nextGroup)) && !nextGroups.includes(hierarchyGroupClass(previousWpId));- const elementAlreadyBelongsToGroup = elementGroups.some(nextGroup => previousGroups.includes(nextGroup)) ||- elementGroups.includes(hierarchyGroupClass(previousWpId));+ const elementAlreadyBelongsToGroup = elementGroups.some(elementGroup => previousGroups.includes(elementGroup)) ||+ elementGroups.includes(hierarchyGroupClass(previousWpId));skipDroppedIntoGroup = isLastElementOfGroup && !elementAlreadyBelongsToGroup;}