From 2b1d12a1baa1f1babb77628b18698ca7cbbe4a58 Mon Sep 17 00:00:00 2001 From: Jens Ulferts Date: Wed, 18 Nov 2015 09:33:10 +0100 Subject: [PATCH] reliably get schema of dynamic attribute This is very akward but quick. --- .../directives/display-pane/display-pane.directive.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/components/inplace-edit/directives/display-pane/display-pane.directive.js b/frontend/app/components/inplace-edit/directives/display-pane/display-pane.directive.js index d19e1f56eb..9eb8385d54 100644 --- a/frontend/app/components/inplace-edit/directives/display-pane/display-pane.directive.js +++ b/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 this.getDynamicDirectiveName = function() { return HookService.call('workPackageOverviewAttributes', { - type: field.resource.schema.props[field.name].type, + type: field.getSchema(field.resource).props[field.name].type, field: field.name, workPackage: field.resource })[0];