[BUGFIX] EXT:form - resolve numeric values in finishers 94/54994/4
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 07:45:02 +0000 (08:45 +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/54994
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Eugene Kenah Djomo <kdeugene@yahoo.fr>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Bjoern Jacob <bjoern.jacob@tritum.de>
Tested-by: Bjoern Jacob <bjoern.jacob@tritum.de>
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 c7c69c2..b5a2cc9 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;