Actions
Bug #82833
closedIt's not possible to replace options from FinisherVariableProvider if they are floats
Status:
Closed
Priority:
Must have
Assignee:
Category:
Form Framework
Target version:
Start date:
2017-10-20
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
8
PHP Version:
7.1
Tags:
Complexity:
Is Regression:
Sprint Focus:
Remote Sprint
Description
Currently only strings and integers are allowed. This prevents further values like floats from being used while saving to database.
The following implementation prevents such use case from working:
if (!is_string($value) && !is_int($value)) { $value = '{' . $match[1] . '}'; }
https://github.com/TYPO3/TYPO3.CMS/blob/TYPO3_8-7/typo3/sysext/form/Classes/Domain/Finishers/AbstractFinisher.php#L208
To reproduce, register a custom finisher that will add a float and use this in another finisher like:
lat: value: '{Geocode.result.geometry.location.lng}'
Actions