[BUGFIX] Correctly evaluate LIT:0 in TS conditions 74/56474/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:40:06 +0000 (10:40 +0200)
commitb173351b821708686779042ddfc471cf7c6ddda0
treed0827b634d29330666f0cbd6fcf08a63c9929919
parent787fbedbcb0f2c5ca652b8c7e4c2a122683a0be5
[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/56474
Tested-by: TYPO3com <no-reply@typo3.com>
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