Explorar el Código

:construction: currency

jqh hace 4 años
padre
commit
edf2cf8017
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/Form/Field/Currency.php

+ 1 - 1
src/Form/Field/Currency.php

@@ -52,7 +52,7 @@ class Currency extends Text
      */
     protected function prepareInputValue($value)
     {
-        return str_replace(',', '', $value);
+        return is_string($value) ? str_replace(',', '', $value) : $value;
     }
 
     /**