Skip to content

Commit ec6efd7

Browse files
[DURACOM-444] fix authority setup
1 parent cab395e commit ec6efd7

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/app/shared/form/builder/ds-dynamic-form-ui/models/relation-group/modal/dynamic-relation-group-modal.components.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ export class DsDynamicRelationGroupModalComponent extends DynamicFormControlComp
7474

7575
@Input() item: any;
7676
@Input() itemIndex: number;
77-
@Input() changedSecurity: boolean;
7877

7978
@Input() value: any;
8079

@@ -89,7 +88,6 @@ export class DsDynamicRelationGroupModalComponent extends DynamicFormControlComp
8988

9089
public formModel: DynamicFormControlModel[];
9190
public vocabulary$: Observable<Vocabulary>;
92-
public securityLevelParent: number;
9391

9492
private subs: Subscription[] = [];
9593

@@ -199,8 +197,7 @@ export class DsDynamicRelationGroupModalComponent extends DynamicFormControlComp
199197
const currentValue: string = (model.value instanceof FormFieldMetadataValueObject
200198
|| model.value instanceof VocabularyEntry) ? model.value.value : model.value;
201199
const currentLang: string = (model.value instanceof FormFieldMetadataValueObject) ? model.value.language : model.language;
202-
const security = null;
203-
const valueWithAuthority: any = new FormFieldMetadataValueObject(currentValue, currentLang, security, authority);
200+
const valueWithAuthority: any = new FormFieldMetadataValueObject(currentValue, currentLang, authority);
204201
model.value = valueWithAuthority;
205202
this.modifyChip();
206203
setTimeout(() => {
@@ -281,7 +278,6 @@ export class DsDynamicRelationGroupModalComponent extends DynamicFormControlComp
281278
new FormFieldMetadataValueObject(
282279
controlValue,
283280
mainModel?.language,
284-
controlValue === PLACEHOLDER_PARENT_METADATA ? null : mainModel.securityLevel,
285281
controlAuthority,
286282
null, 0, null,
287283
(control?.value as any)?.otherInformation || null,

0 commit comments

Comments
 (0)