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
[#59853] allow editing of hierarchy cfs in wp table
Eric Schubert24793ae601f7
diff --git a/frontend/src/app/shared/components/fields/display/display-field.initializer.ts b/frontend/src/app/shared/components/fields/display/display-field.initializer.tsindex c17d1824ee9..9c9b317c9f2 100644--- a/frontend/src/app/shared/components/fields/display/display-field.initializer.ts+++ b/frontend/src/app/shared/components/fields/display/display-field.initializer.ts@@ -104,8 +104,9 @@ export function initializeCoreDisplayFields(displayFieldService:DisplayFieldServ'TimeEntriesActivity','Version','Category',+ 'CustomField::Hierarchy::Item','CustomOption'])- .addFieldType(ResourcesDisplayField, 'resources', ['[]CustomOption'])+ .addFieldType(ResourcesDisplayField, 'resources', ['[]CustomOption', '[]CustomField::Hierarchy::Item']).addFieldType(ResourcesDisplayField, 'resources', ['[]Version']).addFieldType(MultipleUserFieldModule, 'users', ['[]User']).addFieldType(FormattableDisplayField, 'formattable', ['Formattable'])diff --git a/frontend/src/app/shared/components/fields/display/field-types/text-display-field.module.ts b/frontend/src/app/shared/components/fields/display/field-types/text-display-field.module.tsindex 86958028224..6881a4c077a 100644--- a/frontend/src/app/shared/components/fields/display/field-types/text-display-field.module.ts+++ b/frontend/src/app/shared/components/fields/display/field-types/text-display-field.module.ts@@ -27,22 +27,5 @@//++import { DisplayField } from 'core-app/shared/components/fields/display/display-field.module';-import { HalResource } from 'core-app/features/hal/resources/hal-resource';-import isArrayOf from 'core-app/core/state/is-array-of';-export class TextDisplayField extends DisplayField {- public get valueString():string {- // render a text representation for the assigned attribute, independent of the attribute being a resource,- // an array of resources or a single text value.-- if (this.value instanceof HalResource) {- return this.value.name;- }-- if (isArrayOf(this.value, HalResource)) {- return this.value.map((r) => r.name).join(', ');- }-- return this.value as string;- }-}+export class TextDisplayField extends DisplayField {}