Bug #9805

Code mismatch in "FormViewHelper.php"?!

Added by Gabriel Kaufmann about 11 years ago. Updated over 10 years ago.

Status:
Rejected
Priority:
Must have
Assignee:
-
Category:
ViewHelpers
Target version:
-
Start date:
2010-09-17
Due date:
% Done:

0%

Estimated time:
Has patch:

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.

#1

Updated by Sebastian Kurfuerst over 10 years ago

  • Status changed from New to Rejected

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

Also available in: Atom PDF