Sfoglia il codice sorgente

修复分页选中all后刷新问题

Karson 1 anno fa
parent
commit
5d3d667143
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      application/common/controller/Backend.php

+ 2 - 1
application/common/controller/Backend.php

@@ -269,7 +269,8 @@ class Backend extends Controller
         $sort = $this->request->get("sort", !empty($this->model) && $this->model->getPk() ? $this->model->getPk() : 'id');
         $order = $this->request->get("order", "DESC");
         $offset = $this->request->get("offset/d", 0);
-        $limit = $this->request->get("limit/d", 999999);
+        $limit = $this->request->get("limit/d", 0);
+        $limit = $limit ?: 999999;
         //新增自动计算页码
         $page = $limit ? intval($offset / $limit) + 1 : 1;
         if ($this->request->has("page")) {