[BUGFIX] EvaluteDisplayCondition should throw proper error message 80/58480/3
authorBenni Mack <benni@typo3.org>
Sat, 29 Sep 2018 23:42:41 +0000 (01:42 +0200)
committerJigal van Hemert <jigal.van.hemert@typo3.org>
Sun, 30 Sep 2018 10:25:07 +0000 (12:25 +0200)
commitbe13af7f2b9bb6d95e5005b9a305c75eb2d11275
tree2b4fc5fa0c9097c25f57dd65a532ae3ea0503a5e
parent8ecd56ea328a4cd94bdf6dc3297755dc9de28e5d
[BUGFIX] EvaluteDisplayCondition should throw proper error message

When an extension author writes a display condition in TCA and
by incident uses a wrong format for the displayCondition (see ticket)
the strtoupper fails due to the lack of an associative array
because it's a numeric-key array.

An additional check fixes the issue.

Resolves: #79692
Releases: master, 8.7
Change-Id: I4455bdc908e0be1a373f86680e718e876aa5ddd7
Reviewed-on: https://review.typo3.org/58480
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Tested-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
typo3/sysext/backend/Classes/Form/FormDataProvider/EvaluateDisplayConditions.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/EvaluateDisplayConditionsTest.php