mirror of
https://github.com/astaxie/beego.git
synced 2024-12-23 04:00:50 +00:00
Set ErrorsMap to nil in Validation.Clear function
This commit is contained in:
parent
533b00ae56
commit
260b5b1951
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user