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

Merge pull request !441 from 王子涵/N/A
pull/442/head
Karson 2023-04-20 02:00:31 +00:00 committed by Gitee
commit cb0fbe022c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
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] . '.';