Ver Fonte

fix #316

jqh há 4 anos atrás
pai
commit
dfa82eaa4a
1 ficheiros alterados com 3 adições e 1 exclusões
  1. 3 1
      src/Grid/Filter/Group.php

+ 3 - 1
src/Grid/Filter/Group.php

@@ -272,7 +272,9 @@ class Group extends AbstractFilter
 
         $group = Arr::get($inputs, "{$this->id}_group");
 
-        call_user_func($this->builder, $this);
+        if ($this->group->isEmpty()) {
+            call_user_func($this->builder, $this);
+        }
 
         if ($query = $this->group->get($group)) {
             return $this->buildCondition(...$query['condition']);