瀏覽代碼

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

jqh 4 年之前
父節點
當前提交
67b384dddc
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Grid.php

+ 1 - 1
src/Grid.php

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