return (protected) array with validation errors instead of just the count

This commit is contained in:
Ralf Becker 2013-05-25 17:20:11 +00:00
parent 38a4671e04
commit d46bd621ae

View File

@ -2191,7 +2191,7 @@ if($cell_options)
* @param array $to_process list of widgets/form-fields to process
* @param string $cname='' basename of our returnt content (same as in call to show)
* @param string $_type='regular' type of request
* @return int number of validation errors (the adjusted content is returned by the var-param &$content !)
* @return array with validation errors
*/
function process_show(&$content,$to_process,$cname='',$_type='regular')
{
@ -2427,7 +2427,7 @@ if($cell_options)
echo "<p>validation_errors = "; _debug_array(self::$validation_errors);
}
}
return count(self::$validation_errors);
return self::$validation_errors;
}
/**