Skip to content
Snippets Groups Projects
Commit d67a7053 authored by Oliver Bartsch's avatar Oliver Bartsch Committed by Benni Mack
Browse files

[BUGFIX] Ensure compared values are of same type

When strict type comparison was introduced to
the OptionViewHelper in #90540, it was not properly
ensured that the values to compare are of same type.

The issue is fixed by always typecasting the selected
value to string, before comparing it to the value in
question, which will always be a string, according to
its type hint.

Resolves: #93801
Releases: master, 10.4
Change-Id: I3ea1d885a35e3223919facfe6d1825332914a7ed
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/68560


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarJonas Eberle <flightvision@googlemail.com>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
parent f7e110f4
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment