Browse Source

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

jqh 4 năm trước cách đây
mục cha
commit
67b384dddc
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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();