Explorar el Código

修复SelectResource会把空值转化为0问题

jqh hace 5 años
padre
commit
eac42a13f9
Se han modificado 1 ficheros con 0 adiciones y 4 borrados
  1. 0 4
      src/Form/Field/SelectResource.php

+ 0 - 4
src/Form/Field/SelectResource.php

@@ -153,10 +153,6 @@ class SelectResource extends Field
     protected function prepareInputValue($value)
     {
         if ($this->maxItem == 1) {
-            if ($value === null || $value === '') {
-                return 0;
-            }
-
             return $value;
         }