Issue Bug Closed

#65250TypoScript condition with GP not working as expected (does not merge array as in ".if" but preferes post values of a whole array)

Andreas Allacher 02/24/15, 10:24 updated 10/02/18, 11:47

Description

If one uses TypoScript condition with GP then the check is with GeneralUtility::_GP($k) which will means that if I have Get variables beginning with an extbase pluginnamespace and post variables with the same pluginnamespace, e.g.
GET: tx_demo_demo[action]=detail
POST: tx_demo_demo[name]=Foo

Then GeneralUtility::_GP(‘tx_demo_demo’) as intended will only return the array of the POST variables for that namespace.
However, that results in the issue that if I check for the GET variable the check will fail.

So, instead the check should use GeneralUtility::_GPmerged($k)

Reviews 1