Browse Source

:construction: currency

jqh 4 năm trước cách đây
mục cha
commit
edf2cf8017
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;
     }
 
     /**