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

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

@@ -60,7 +60,7 @@ JS;
      */
     protected function prepareInputValue($value)
     {
-        return (int) $value;
+        return empty($value) ? 0 : $value;
     }
 
     /**