From ee866c0c97a7f42909c6d3f47b1ed45db24bc7ee Mon Sep 17 00:00:00 2001 From: Karson <karsonzhang@163.com> Date: Tue, 30 May 2017 21:02:00 +0800 Subject: [PATCH] --- application/admin/controller/example/Relationmodel.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/application/admin/controller/example/Relationmodel.php b/application/admin/controller/example/Relationmodel.php index a173352..8c0bc89 100644 --- a/application/admin/controller/example/Relationmodel.php +++ b/application/admin/controller/example/Relationmodel.php @@ -26,16 +26,17 @@ class Relationmodel extends Backend */ public function index() { + $this->relationSearch = true; if ($this->request->isAjax()) { list($where, $sort, $order, $offset, $limit) = $this->buildparams(); $total = $this->model - ->with("Admin") + ->with("admin") ->where($where) ->order($sort, $order) ->count(); $list = $this->model - ->with("Admin") + ->with("admin") ->where($where) ->order($sort, $order) ->limit($offset, $limit) -- libgit2 0.24.0