[TYPO3] wfqbe bug(?)

Gerhard Mehsel sparking at gmx.net
Sun Feb 17 20:09:28 CET 2008


Hello Mauro,

while playing around with the wfqbe extension I ran into a small 
problem, I think it's a small bug:

It is possible to set a redirect page and parameter after an insert or a 
delete. As mentioned in your tutorial it is possible to use one of the 
following markers for the redirect parameter:
1) ###ID### - the uid of the inserted data row
2) ###WFQBE_FIELD_XXXX### - fieldname of an existing field

Nr. 1 is working.
Nr. 2 is not working, because the parameter will be surrounded by ' in 
the moment of redirection.
e.g.
tx_wfqbe_pi1[uid]=###WFQBE_FIELD_fieldname###
will result in
tx_wfqbe_pi1[uid]='123' which is not correct. The resulting SQL will be 
SELECT * FROM table WHERE uid=\'123\'






BTW: in your user manual at typo3.org you wrote that the redirect 
parameter should look like this &tx_wfqbe_pi1[uid]=###ID### which is a 
fault, because the '&' will be concatenated by your extension code. The 
result will be http://127.0.0.1/index.php?id=1&&tx_wfqbe_pi1[uid]=6, so 
there is one '&' too much.



Have a nice time.
Gerd


More information about the TYPO3-english mailing list