Issue Bug Closed

#86938Implicit type cast through ArrayUtility::stripTagsFromValuesRecursive

Wolfgang Klinger 11/15/18, 17:09 updated 05/07/19, 12:15

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.

Reviews 2