Sfoglia il codice sorgente

tag默认保存为array类型

jqh 4 anni fa
parent
commit
1fdabcb70f
1 ha cambiato i file con 1 aggiunte e 7 eliminazioni
  1. 1 7
      src/Form/Field/Tags.php

+ 1 - 7
src/Form/Field/Tags.php

@@ -131,13 +131,7 @@ class Tags extends Field
             return $value;
             return $value;
         }
         }
 
 
-        $value = array_filter($value, 'strlen');
-
-        if ($value && ! Arr::isAssoc($value)) {
-            $value = implode(',', $value);
-        }
-
-        return $value;
+        return array_filter($value, 'strlen');
     }
     }
 
 
     /**
     /**