From 4cab6ca1607fd4e663dd068b67b3779906936887 Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Fri, 16 Sep 2022 10:32:29 +0300 Subject: [PATCH] dmp-editor.component.ts: [Bug fix - #8073] Set value of "status" field of formGroup to DmpStatus.Draft, after reset() is called. --- dmp-frontend/src/app/ui/dmp/editor/dmp-editor.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/dmp-frontend/src/app/ui/dmp/editor/dmp-editor.component.ts b/dmp-frontend/src/app/ui/dmp/editor/dmp-editor.component.ts index e14bf2cfd..007dfa991 100644 --- a/dmp-frontend/src/app/ui/dmp/editor/dmp-editor.component.ts +++ b/dmp-frontend/src/app/ui/dmp/editor/dmp-editor.component.ts @@ -1065,6 +1065,7 @@ export class DmpEditorComponent extends CheckDeactivateBaseComponent implements } } else { this.formGroup.reset(); + this.formGroup.get("status").setValue(DmpStatus.Draft); this.formGroup.get('extraProperties').get('visible').setValue(false); this.formGroup.get('extraProperties').get('contact').setValue(this.authService.current().id); this.formGroup.get('associatedUsers').setValue([]);