[+BUGFIX] Incorrect type of Error thrown (FLOW3 Error)
authorClaus Due <claus@wildside.dk>
Thu, 18 Aug 2011 17:35:18 +0000 (19:35 +0200)
committerClaus Due <claus@wildside.dk>
Thu, 18 Aug 2011 17:35:58 +0000 (19:35 +0200)
This fixes #28816 for fluid.

Thanks to Jaume for reporting!

Change-Id: I0897a8fd6a435e852ba0e1600673d984fa3f15f3
References: #28816

typo3/sysext/fluid/Classes/ViewHelpers/Form/AbstractFormFieldViewHelper.php

index 0fa1151..229c107 100644 (file)
@@ -256,14 +256,14 @@ abstract class Tx_Fluid_ViewHelpers_Form_AbstractFormFieldViewHelper extends Tx_
        /**
         * Get errors for the property and form name of this view helper
         *
-        * @return array<\F3\FLOW3\Error\Error> Array of errors
+        * @return array<Tx_Extbase_Error_Result> Array of errors
         * @author Christopher Hlubek <hlubek@networkteam.com>
         * @author Bastian Waidelich <bastian@typo3.org>
         * @author Sebastian Kurf├╝rst <sebastian@typo3.org>
         */
        protected function getMappingResultsForProperty() {
                if (!$this->isObjectAccessorMode()) {
-                       return new \F3\FLOW3\Error\Result();
+                       return new Tx_Extbase_Error_Result();
                }
                $originalRequestMappingResults = $this->controllerContext->getRequest()->getOriginalRequestMappingResults();
                $formObjectName = $this->viewHelperVariableContainer->get('Tx_Fluid_ViewHelpers_FormViewHelper', 'formObjectName');