From 51b467ee15493c662f31f9a94aaa64599c0d5430 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Tue, 15 Mar 2016 11:49:11 +0100 Subject: [PATCH] Reset error state when submission successful --- frontend/app/components/wp-edit/wp-edit-form.directive.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/app/components/wp-edit/wp-edit-form.directive.ts b/frontend/app/components/wp-edit/wp-edit-form.directive.ts index eb4a1dc72a..0209b43308 100644 --- a/frontend/app/components/wp-edit/wp-edit-form.directive.ts +++ b/frontend/app/components/wp-edit/wp-edit-form.directive.ts @@ -42,6 +42,7 @@ export class WorkPackageEditFormController { this.workPackage.save() .then(() => { + angular.forEach(this.fields, field => field.setErrorState(false)); deferred.resolve(); }) .catch((error) => {