Project

General

Profile

Actions

Bug #86938

closed

Implicit type cast through ArrayUtility::stripTagsFromValuesRecursive

Added by Wolfgang Klinger over 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Must have
Category:
-
Target version:
-
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

Also available in: Atom PDF