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

Fix multiselect list custom field (#9108)

Benjamin Bädorf77aca255c4c5
diff --git a/frontend/src/app/modules/fields/edit/field-types/multi-select-edit-field.component.ts b/frontend/src/app/modules/fields/edit/field-types/multi-select-edit-field.component.ts
index 3f2e70e5237..8744952a9f6 100644
--- a/frontend/src/app/modules/fields/edit/field-types/multi-select-edit-field.component.ts
+++ b/frontend/src/app/modules/fields/edit/field-types/multi-select-edit-field.component.ts
@@ -94,7 +94,7 @@ export class MultiSelectEditFieldComponent extends EditFieldComponent implements
*/
public buildSelectedOption() {
const value:HalResource[] = this.resource[this.name];
- return value ? value.map(val => this.findValueOption(val)) : [];
+ return value ? _.castArray(value).map(val => this.findValueOption(val)) : [];
}
public get selectedOption() {