1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-29 15:31:29 +00:00

Merge pull request #1096 from byrnedo/develop

Set ErrorsMap to nil in Validation.Clear function
This commit is contained in:
astaxie 2015-03-27 14:46:45 +08:00
commit cdf9ff401f

View File

@ -107,6 +107,7 @@ type Validation struct {
// Clean all ValidationError. // Clean all ValidationError.
func (v *Validation) Clear() { func (v *Validation) Clear() {
v.Errors = []*ValidationError{} v.Errors = []*ValidationError{}
v.ErrorsMap = nil
} }
// Has ValidationError nor not. // Has ValidationError nor not.