Index: trunk/core/kernel/db/dbitem.php =================================================================== diff -u -r3086 -r3088 --- trunk/core/kernel/db/dbitem.php (.../dbitem.php) (revision 3086) +++ trunk/core/kernel/db/dbitem.php (.../dbitem.php) (revision 3088) @@ -427,16 +427,19 @@ return true; } - function HasErrors($params = Array()) + /** + * Check if item has errors + * + * @param Array $skip_fields fields to skip during error checking + * @return bool + */ + function HasErrors($skip_fields) { $global_res = false; - if($skip_fields = getArrayValue($params, 'except')) - { - if(!is_array($skip_fields)) $skip_fields = explode(',', $skip_fields); - } + foreach ($this->Fields as $field => $field_params) { // If Formatter has set some error messages during values parsing - if ( !(is_array($skip_fields) && in_array($field, $skip_fields) ) && + if ( !( in_array($field, $skip_fields) ) && isset($this->FieldErrors[$field]['pseudo']) && $this->FieldErrors[$field] != '') { $global_res = true; }