Browse Source

修复 grid filter checkbox 只能向后台传递选中的单个值问题 #1173

达康 4 years ago
parent
commit
f977baea4f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      resources/views/filter/checkbox.blade.php

+ 2 - 2
resources/views/filter/checkbox.blade.php

@@ -1,6 +1,6 @@
 <div class="input-group input-group-sm">
     @php
-        $checkbox = new \Dcat\Admin\Widgets\Checkbox($name, $options);
+        $checkbox = new \Dcat\Admin\Widgets\Checkbox($name.'[]', $options);
         if ($inline) $checkbox->inline();
 
         $checkbox->check(request($name, is_null($value) ? [] : $value))->circle(false);
@@ -16,4 +16,4 @@
     @else
         {!! $checkbox !!}
     @endif
-</div>
+</div>