[BUGFIX] Correctly evaluate LIT:0 in TS conditions 64/56464/2
authorMarkus Klein <markus.klein@typo3.org>
Tue, 27 Mar 2018 19:59:19 +0000 (21:59 +0200)
committerTymoteusz Motylewski <t.motylewski@gmail.com>
Thu, 29 Mar 2018 08:12:18 +0000 (10:12 +0200)
commit084a75e4715428a036d5579f5682a1d1d9766336
tree1d47f7c11b2615071acb5aefb824fdf722cd4159
parent2ee2312abc58c3db3003bf07fb19a18fd63abd74
[BUGFIX] Correctly evaluate LIT:0 in TS conditions

Handle LIT:0 used in TypoScript conditions such that is evaluates
to '0' instead of null.
This makes comparisons for equality working.

Resolves: #84543
Releases: master, 8.7
Change-Id: I5eb16d556098179605646faf696f9defaf6195ac
Reviewed-on: https://review.typo3.org/56464
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
typo3/sysext/backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php
typo3/sysext/core/Classes/Configuration/TypoScript/ConditionMatching/AbstractConditionMatcher.php