* datatableModel: change cols property to fieldList property to use the new configuration of dtable.

This commit is contained in:
liugang
2023-06-13 13:56:18 +08:00
parent 5a4fa1cb03
commit af5e48f136
+1 -1
View File
@@ -82,7 +82,7 @@ class datatableModel extends model
$module = zget($this->config->datatable->moduleAlias, "$module-$method", $module);
if(!isset($this->config->$module)) $this->loadModel($module);
if(isset($this->config->datatable->$datatableId->cols)) $setting = json_decode($this->config->datatable->$datatableId->cols, true);
if(isset($this->config->datatable->$datatableId->fieldList)) $setting = json_decode($this->config->datatable->$datatableId->fieldList, true);
$fieldList = $this->getFieldList($module);
if(empty($setting))