Skip to content

Commit

Permalink
Reset validation state when the cancel action is invoked. Without thi…
Browse files Browse the repository at this point in the history
…s 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.
  • Loading branch information
fbarthez committed Dec 12, 2015
1 parent 5b7d805 commit 9578bb9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 9578bb9

Please sign in to comment.