diff --git a/frontend/src/app/ui/admin/plan-blueprint/editor/plan-blueprint-editor.component.html b/frontend/src/app/ui/admin/plan-blueprint/editor/plan-blueprint-editor.component.html index e6d22caff..50b2e6f33 100644 --- a/frontend/src/app/ui/admin/plan-blueprint/editor/plan-blueprint-editor.component.html +++ b/frontend/src/app/ui/admin/plan-blueprint/editor/plan-blueprint-editor.component.html @@ -106,7 +106,7 @@
{{'PLAN-BLUEPRINT-EDITOR.FIELDS.CATEGORY' | translate}} - + {{enumUtils.toPlanBlueprintFieldCategoryString(fieldCategory)}} {{field.get('category').getError('backendError').message}} @@ -116,7 +116,7 @@
{{'PLAN-BLUEPRINT-EDITOR.FIELDS.SYSTEM-FIELD-TYPE' | translate}} - + {{enumUtils.toPlanBlueprintSystemFieldTypeString(systemFieldType)}} {{field.get('systemFieldType').getError('backendError').message}} diff --git a/frontend/src/app/ui/admin/plan-blueprint/editor/plan-blueprint-editor.component.ts b/frontend/src/app/ui/admin/plan-blueprint/editor/plan-blueprint-editor.component.ts index 522004cc9..8fad7f69e 100644 --- a/frontend/src/app/ui/admin/plan-blueprint/editor/plan-blueprint-editor.component.ts +++ b/frontend/src/app/ui/admin/plan-blueprint/editor/plan-blueprint-editor.component.ts @@ -180,13 +180,9 @@ export class PlanBlueprintEditorComponent extends BaseEditor this.breadcrumbService.addIdResolvedValue(cloneid, x.label)), takeUntil(this._destroyed), map((blueprint: PlanBlueprint) => { - blueprint.id = null; - blueprint.hash = null; - blueprint.code = null; - blueprint.isActive = IsActive.Active; - return blueprint; + return { + ...blueprint, + id: null, + hash: null, + code: null, + isActive: IsActive.Active, + belongsToCurrentTenant: true + } })); } else if (newversion != null) { return this.planBlueprintService.getSingle(Guid.parse(newversion), fields).pipe(tap(x => this.breadcrumbService.addIdResolvedValue(newversion, x.label)), takeUntil(this._destroyed));