mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 02:14:45 +01:00
return (protected) array with validation errors instead of just the count
This commit is contained in:
parent
38a4671e04
commit
d46bd621ae
@ -2191,7 +2191,7 @@ if($cell_options)
|
|||||||
* @param array $to_process list of widgets/form-fields to process
|
* @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 $cname='' basename of our returnt content (same as in call to show)
|
||||||
* @param string $_type='regular' type of request
|
* @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')
|
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);
|
echo "<p>validation_errors = "; _debug_array(self::$validation_errors);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return count(self::$validation_errors);
|
return self::$validation_errors;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user