include custom_errors in validation
This commit is contained in:
parent
a6edbc0f56
commit
1c450a7291
@ -118,6 +118,6 @@ impl ActixAdminModel {
|
||||
}
|
||||
|
||||
pub fn has_errors(&self) -> bool {
|
||||
return &self.errors.len() != &0;
|
||||
return (&self.errors.len() + &self.custom_errors.len()) != 0 as usize;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user