Browse Source

修复Grid::processFilter返回的collection对象内容会被转化为数组的问题

jqh 4 years ago
parent
commit
67b384dddc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Grid.php

+ 1 - 1
src/Grid.php

@@ -414,7 +414,7 @@ class Grid
             return;
             return;
         }
         }
 
 
-        $collection = $this->processFilter();
+        $collection = clone $this->processFilter();
 
 
         $this->prependRowSelectorColumn();
         $this->prependRowSelectorColumn();
         $this->appendActionsColumn();
         $this->appendActionsColumn();