Issue Bug Closed

#77793FormViewHelper doesn't handle attribute pageUid="" correct

Frans Saris 09/02/16, 18:03 updated 10/17/17, 23:24

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>

Reviews 2