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 authored and darkv committed Jun 2, 2016
1 parent d6b6b8b commit ca1aa03
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 ca1aa03

Please sign in to comment.