瀏覽代碼

!441 修复后台控制器关联查询参数设置无效
Merge pull request !441 from 王子涵/N/A

Karson 2 年之前
父節點
當前提交
cb0fbe022c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      application/common/controller/Backend.php

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

@@ -284,7 +284,7 @@ class Backend extends Controller
         $bind = [];
         $name = '';
         $aliasName = '';
-        if (!empty($this->model) && $this->relationSearch) {
+        if (!empty($this->model) && $relationSearch) {
             $name = $this->model->getTable();
             $alias[$name] = Loader::parseName(basename(str_replace('\\', '/', get_class($this->model))));
             $aliasName = $alias[$name] . '.';