Task #12991 ยป sysext-fluid-12991-form_error_merge.diff

Alexander Stehlik, 2011-02-11 18:01

View differences:

Classes/ViewHelpers/Form/ErrorsViewHelper.php (Arbeitskopie)
83 83
	 * @author Christopher Hlubek <hlubek@networkteam.com>
84 84
	 */
85 85
	protected function getErrorsForProperty($propertyName, $errors) {
86
		$propertyErrors = array();
86 87
		foreach ($errors as $error) {
87 88
			if ($error instanceof Tx_Extbase_Validation_PropertyError) {
88 89
				if ($error->getPropertyName() === $propertyName) {
89
					return $error->getErrors();
90
					$propertyErrors = array_merge($propertyErrors, $error->getErrors());
90 91
				}
91 92
			}
92 93
		}
93
		return array();
94
		return $propertyErrors;
94 95
	}
95 96
}
96 97

  
    (1-1/1)