[BUGFIX] EXT:form - resolve numeric values in finishers 38/55038/2
authorMathias Brodala <mbrodala@pagemachine.de>
Fri, 8 Dec 2017 15:45:23 +0000 (16:45 +0100)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Tue, 12 Dec 2017 08:17:07 +0000 (09:17 +0100)
This fixes option parsing for finishers to return any kind of
numeric values within the form runtime or finisher variable provider.

Resolves: #82833
Releases: master, 8.7
Change-Id: I334fbd36e526823f07e57247bd63d412a3c3b0d6
Reviewed-on: https://review.typo3.org/55038
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
typo3/sysext/form/Classes/Domain/Finishers/AbstractFinisher.php

index 5c011fd..2b3b4f8 100644 (file)
@@ -205,7 +205,7 @@ abstract class AbstractFinisher implements FinisherInterface
                     );
                 }
             }
-            if (!is_string($value) && !is_int($value)) {
+            if (!is_string($value) && !is_numeric($value)) {
                 $value = '{' . $match[1] . '}';
             }
             return $value;