From c6d64dc9cfbc11f1e69045a5d428beb200f5b2a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Tue, 21 May 2019 20:08:45 +0200 Subject: [PATCH] [30230] Don't pass injector in isolated query This prevents the injector getting the isolated query instance and using the parent scope, breaking embedded tables --- .../wp-single-view/wp-single-view.component.ts | 7 +++++-- .../work-packages/wp-single-view/wp-single-view.html | 10 ++++++++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/frontend/src/app/components/work-packages/wp-single-view/wp-single-view.component.ts b/frontend/src/app/components/work-packages/wp-single-view/wp-single-view.component.ts index 942d612a67..bfa66e2cad 100644 --- a/frontend/src/app/components/work-packages/wp-single-view/wp-single-view.component.ts +++ b/frontend/src/app/components/work-packages/wp-single-view/wp-single-view.component.ts @@ -62,6 +62,7 @@ export interface GroupDescriptor { id:string; members:FieldDescriptor[]; query?:QueryResource; + isolated:boolean; type:string; } @@ -275,7 +276,8 @@ export class WorkPackageSingleViewComponent implements OnInit, OnDestroy { name: group.name, id: groupId || randomString(16), members: this.getFields(resource, group.attributes), - type: group._type + type: group._type, + isolated: false }; } else { return { @@ -284,7 +286,8 @@ export class WorkPackageSingleViewComponent implements OnInit, OnDestroy { query: group._embedded.query, relationType: group.relationType, members: [group._embedded.query], - type: group._type + type: group._type, + isolated: true }; } }); diff --git a/frontend/src/app/components/work-packages/wp-single-view/wp-single-view.html b/frontend/src/app/components/work-packages/wp-single-view/wp-single-view.html index 263c9e3216..22c30d318e 100644 --- a/frontend/src/app/components/work-packages/wp-single-view/wp-single-view.html +++ b/frontend/src/app/components/work-packages/wp-single-view/wp-single-view.html @@ -109,14 +109,20 @@ - + + + + + +