include custom_errors in validation

This commit is contained in:
manuel 2022-08-20 21:49:15 +02:00
parent a6edbc0f56
commit 1c450a7291

View File

@ -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;
}
}