reliably get schema of dynamic attribute

This is very akward but quick.
pull/3848/head
Jens Ulferts 9 years ago
parent ea1e718876
commit 2b1d12a1ba
  1. 2
      frontend/app/components/inplace-edit/directives/display-pane/display-pane.directive.js

@ -98,7 +98,7 @@ function InplaceEditorDisplayPaneController($scope, HookService) {
// refactor to a service method the whole extraction // refactor to a service method the whole extraction
this.getDynamicDirectiveName = function() { this.getDynamicDirectiveName = function() {
return HookService.call('workPackageOverviewAttributes', { return HookService.call('workPackageOverviewAttributes', {
type: field.resource.schema.props[field.name].type, type: field.getSchema(field.resource).props[field.name].type,
field: field.name, field: field.name,
workPackage: field.resource workPackage: field.resource
})[0]; })[0];

Loading…
Cancel
Save