a7e60c93 by Donal Byrne Committed by astaxie

Set ErrorsMap to nil in Validation.Clear function

1 parent 5b1705b2
...@@ -107,6 +107,7 @@ type Validation struct { ...@@ -107,6 +107,7 @@ type Validation struct {
107 // Clean all ValidationError. 107 // Clean all ValidationError.
108 func (v *Validation) Clear() { 108 func (v *Validation) Clear() {
109 v.Errors = []*ValidationError{} 109 v.Errors = []*ValidationError{}
110 v.ErrorsMap = nil
110 } 111 }
111 112
112 // Has ValidationError nor not. 113 // Has ValidationError nor not.
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!