Bug #9805

Code mismatch in "FormViewHelper.php"?!

Added by Gabriel Kaufmann almost 5 years ago. Updated about 4 years ago.

Status:Rejected Start date:2010-09-17
Priority:Must have Due date:
Assigned To:- % Done:

0%

Category:ViewHelpers
Target version:-
Has patch: Affected Flow version:

Description

Hello,

I just found this code, after trying to figure out the PHP-Error

Fatal error: Call to a member function reset() on a non-object in /[..]/typo3_src-4.4.2/typo3/sysext/fluid/Classes/ViewHelpers/FormViewHelper.php on line 167

Looking into that file there is the following code:
00165                            $uriBuilder = $this->controllerContext->getUriBuilder();
00166                            $formActionUri = $uriBuilder
00167                                     ->reset()
00168                                     ->setTargetPageUid($this->arguments['pageUid'])
00169                                     ->setTargetPageType($this->arguments['pageType'])

Please note the missing variables in front of the class-functions "->" and the missing semicolon. I don't think this can be right - or I missed a change in the PHP-core allowing such things.

The problem appears after trying to use the "<f:form>[..]<f:/form>" tag in a fluid-template. Without using this tags, the template works just fine. So i think this is a bug.

History

#1 Updated by Sebastian Kurfuerst about 4 years ago

  • Status changed from New to Rejected

That's correct, it's a chained method call.

Also available in: Atom PDF