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
fix row rerendering with limited permissions
ulferts247c8e913e4e
diff --git a/frontend/src/app/components/wp-fast-table/builders/cell-builder.ts b/frontend/src/app/components/wp-fast-table/builders/cell-builder.tsindex e25bde2b7c6..4a3a5b42123 100644--- a/frontend/src/app/components/wp-fast-table/builders/cell-builder.ts+++ b/frontend/src/app/components/wp-fast-table/builders/cell-builder.ts@@ -1,6 +1,5 @@import {WorkPackageResource} from 'core-app/modules/hal/resources/work-package-resource';import {- displayClassName,DisplayFieldRenderer,editFieldContainerClass} from "core-app/modules/fields/display/display-field-renderer";diff --git a/frontend/src/app/components/wp-fast-table/builders/drag-and-drop/drag-drop-handle-builder.ts b/frontend/src/app/components/wp-fast-table/builders/drag-and-drop/drag-drop-handle-builder.tsindex da7f5f4999a..d5a165acf54 100644--- a/frontend/src/app/components/wp-fast-table/builders/drag-and-drop/drag-drop-handle-builder.ts+++ b/frontend/src/app/components/wp-fast-table/builders/drag-and-drop/drag-drop-handle-builder.ts@@ -25,11 +25,13 @@ export class DragDropHandleBuilder {// Append sort handlelet td = document.createElement('td');+ td.classList.add(tdClassName, internalSortColumn.id);+if (!this.actionService.canPickup(workPackage)) {return td;}- td.classList.add(tdClassName, 'wp-table--sort-td', internalSortColumn.id, 'hide-when-print');+ td.classList.add('wp-table--sort-td', internalSortColumn.id, 'hide-when-print');// Wrap handle as spanlet span = document.createElement('span');diff --git a/frontend/src/app/components/wp-fast-table/builders/rows/single-row-builder.ts b/frontend/src/app/components/wp-fast-table/builders/rows/single-row-builder.tsindex ecf13461248..b46d17a1e0a 100644--- a/frontend/src/app/components/wp-fast-table/builders/rows/single-row-builder.ts+++ b/frontend/src/app/components/wp-fast-table/builders/rows/single-row-builder.ts@@ -152,7 +152,10 @@ export class SingleRowBuilder {// Treat internal columns specially// and skip the replacement of the column if this is being edited.- if (column.id.startsWith('__internal') || this.isColumnBeingEdited(workPackage, column)) {+ // But only do that, if the column existed before. Sometimes, e.g. when lacking permissions+ // the column was not correctly created (with the intended classes). This code then+ // increases the robustness.+ if ((column.id.startsWith('__internal') || this.isColumnBeingEdited(workPackage, column)) && oldTd.length) {newCells.push(oldTd[0]);return;}