From 5cd5b96fb309729090a9f16edb9849300511b417 Mon Sep 17 00:00:00 2001 From: apapachristou Date: Thu, 22 Aug 2019 17:53:25 +0300 Subject: [PATCH] Fixes bug on dmp status value on failing action "finalize" --- dmp-frontend/src/app/ui/dmp/editor/dmp-editor.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 133fe8903..356dc43b4 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 @@ -251,7 +251,10 @@ export class DmpEditorComponent extends BaseComponent implements OnInit, IBreadC } else { this.onCallbackSuccess() } }, - error => this.onCallbackError(error) + error => { + this.formGroup.get('status').setValue(DmpStatus.Draft); + this.onCallbackError(error); + } ); }