Fix select field options

pull/4159/head
Alex Dik 9 years ago
parent 4a9702f614
commit a209ac48eb
  1. 1
      frontend/app/components/api/api-v3/hal/hal-resource.service.ts
  2. 2
      frontend/app/components/wp-edit/wp-edit-field/wp-edit-field.config.ts

@ -99,7 +99,6 @@ function halResource(halTransform, HalLink, $q) {
return element;
}
//TODO: Implement handling for link arrays (see schema.priority._links.allowedValues)
private transformLinks() {
return this.transformHalProperty('_links', HalLink.asFunc);
}

@ -38,7 +38,7 @@ class SelectField extends Field {
constructor(workPackage, fieldName, schema) {
super(workPackage, fieldName, schema);
this.options = this.schema.embedded.allowedValues.map(value => value.data());
this.options = this.schema.allowedValues;
}
}

Loading…
Cancel
Save