From 9578bb95dc4e9e49469346691e16558c240043d3 Mon Sep 17 00:00:00 2001 From: Fabian Peters Date: Sat, 12 Dec 2015 14:48:32 +0100 Subject: [PATCH] Reset validation state when the cancel action is invoked. Without this change, when attempting to create a new relationship object, failing due to a validation error, cancelling and then clicking "New" once more, would still show the validation messages. --- .../Sources/er/directtoweb/pages/ERD2WInspectPage.java | 1 + 1 file changed, 1 insertion(+) diff --git a/Frameworks/Core/ERDirectToWeb/Sources/er/directtoweb/pages/ERD2WInspectPage.java b/Frameworks/Core/ERDirectToWeb/Sources/er/directtoweb/pages/ERD2WInspectPage.java index 74458fce1b9..79548802459 100644 --- a/Frameworks/Core/ERDirectToWeb/Sources/er/directtoweb/pages/ERD2WInspectPage.java +++ b/Frameworks/Core/ERDirectToWeb/Sources/er/directtoweb/pages/ERD2WInspectPage.java @@ -163,6 +163,7 @@ public WOComponent deleteAction() throws Throwable { public WOComponent cancelAction() { if ((object() != null) && (object().editingContext()!=null) && shouldRevertChanges()) { object().editingContext().revert(); + clearValidationFailed(); } return nextPage(false); }