From 48bbb25b36aea82a28bc39ba0dedf222577cf31d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Fri, 2 Dec 2016 09:03:04 +0100 Subject: [PATCH] [24389] Fix initial ID rendering without schema As the work packages from the list response have no schema, but are used to build the table, they initially have no schema yet. --- .../work-packages/wp-display-attr/wp-display-attr.directive.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/components/work-packages/wp-display-attr/wp-display-attr.directive.ts b/frontend/app/components/work-packages/wp-display-attr/wp-display-attr.directive.ts index 9668476516..2122884274 100644 --- a/frontend/app/components/work-packages/wp-display-attr/wp-display-attr.directive.ts +++ b/frontend/app/components/work-packages/wp-display-attr/wp-display-attr.directive.ts @@ -53,7 +53,7 @@ export class WorkPackageDisplayAttributeController { protected $scope: ng.IScope) { // Update the attribute initially - if (this.workPackage) { + if (this.workPackage && this.customSchema && this.schema[this.attribute]) { this.updateAttribute(this.workPackage); } }