update application/common/controller/Backend.php.

修复后台控制器关联查询参数设置无效

Signed-off-by: 王子涵 <3125976329@qq.com>
pull/446/head
王子涵 2023-04-12 03:47:46 +00:00 committed by Karson
parent 2c02ed019b
commit e4ef9f1db0
1 changed files with 1 additions and 1 deletions

View File

@ -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] . '.';