代码拉取完成,页面将自动刷新
430
【轻量PR】关联模型下时间无法搜索的BUG,仅在关联搜索条件下调用
已关闭
如Backend.php 287行,存在$this->relationSearch
判断条件
if (!empty($this->model) && $this->relationSearch) {
$name = $this->model->getTable();
$alias[$name] = Loader::parseName(basename(str_replace('\\', '/', get_class($this->model))));
$aliasName = $alias[$name] . '.';
}
在后台js文件中设置 {field: 'fa.create_time', title: __('Create_time'), operate:'RANGE'},
,
当 $this->relationSearch
为false,buildparams()方法会报错找不到model->fa,影响手动拼接join查询。
建议添加 $this->relationSearch
判断条件,仅在关联搜索条件下调用