Project

General

Profile

Actions

Bug #77793

closed

FormViewHelper doesn't handle attribute pageUid="" correct

Added by Frans Saris about 8 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
Start date:
2016-09-02
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
On Location Sprint

Description

If you use the <f:form viewHelper with a empty string as pageUid value the action attribute isn't rendered correctly.
This is especially an issue when using typoscript settings to make it possible to set a fixed pageUid. But if left empty the current pageUid is used.

Example fluid:

plugin.tx_indexedsearch {
    settings {
        targetPid =
    }
}

Example fluid:

<f:form action="search" method="post" id="tx_indexedsearch" noCacheHash="true" pageUid="{settings.targetPid}">
....
</f:form>

Example result:

<form method="post" id="tx_indexedsearch" action>
....
</form>

Expected result:

<form method="post" id="tx_indexedsearch" action="index.php?id=27&amp;tx_indexedsearch_pi2%5Baction%5D=search&amp;tx_indexedsearch_pi2%5Bcontroller%5D=Search">
...
</form>

Actions #1

Updated by Gerrit Code Review about 8 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/49771

Actions #2

Updated by Frans Saris about 8 years ago

  • Target version set to 8.4
  • Sprint Focus set to On Location Sprint
Actions #3

Updated by Gerrit Code Review about 8 years ago

Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/49825

Actions #4

Updated by Frans Saris about 8 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by Riccardo De Contardi about 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF