[TYPO3-core] Bug: TS-Condition with GET Var not possible if there are POST Vars

Sascha Egerer seg at softvision.de
Wed Nov 19 13:50:58 CET 2008


This is an SVN patch request.

Type: New feature

Bugtracker references:
none yet because bugtracker is currently not available

Branches:
4.2 and trunk

Problem:
There is a problem with globalVar GP Condition in TypoScript. If there are 
POST Vars the GET Vars can not be checked because t3lib_div::_GP is used. 
t3lib_div::_GP does only use POST Vars if there are any.
So something like
[globalVar = GP:tx_commerce_pi1|showUid > 0]
will fail if there are are POST Vars for tx_commerce_pi1

Solution:
Change line 697 in "class.t3lib_matchcondition.php" from
t3lib_div::_GP
to
t3lib_div::GParrayMerged

So the GET and POST Array will be merged an you can still check GET Vars if 
there are POST vars too.

Regards,
Sascha Egerer 


begin 666 ts_condition_gp.patch
M9&EF9B!5,4(@=#-L:6(O8VQA<W,N=#-L:6)?;6%T8VAC;VYD:71I;VXN<&AP
M+F]L9"!T,VQI8B]C;&%S<RYT,VQI8E]M871C:&-O;F1I=&EO;BYP:' -"BTM
M+2!T,VQI8B]C;&%S<RYT,VQI8E]M871C:&-O;F1I=&EO;BYP:' N;VQD"5=E
M9"!.;W8@,3D@,3(Z,C Z,CD@,C P. T**RLK('0S;&EB+V-L87-S+G0S;&EB
M7VUA=&-H8V]N9&ET:6]N+G!H< E7960 at 3F]V(#$Y(#$R.C(Q.C4T(#(P,#@-
M"D! ("TV.38L,R K-CDV+#, at 0$ -"B )"0D)"6-A<V4@)T=0)SH-"BT)"0D)
M"0DD=F%L(#T@=#-L:6)?9&EV.CI?1U H)&LI.PT**PD)"0D)"21V86P@/2!T
L,VQI8E]D:78Z.D=087)R87E-97)G960H)&LI.PT*( D)"0D)8G)E86L[#0H`
`
end



More information about the TYPO3-team-core mailing list