Actions
Bug #86938
closedImplicit type cast through ArrayUtility::stripTagsFromValuesRecursive
Start date:
2018-11-15
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:
Description
`\TYPO3\CMS\Core\Utility\ArrayUtility::stripTagsFromValuesRecursive` does not care if the value is a number, so any integers are returned as strings.
That's a problem e.g. in the form extension, which uses this method in `\TYPO3\CMS\Form\Controller\FormEditorController::transformFormDefinitionForFormEditor`.
Because of this implicit type cast the strict comparison for default value keys in Javascript fails (even though the yaml file has the correct keys, aka integers set).
The method should only change strings.
Actions