revert * datatableModel: change cols property to fieldList property to use the new configuration of dtable.
This commit is contained in:
刘刚
2023-06-13 14:09:01 +08:00
parent e21ced681f
commit 59c460182d
+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->fieldList)) $setting = json_decode($this->config->datatable->$datatableId->fieldList, true);
if(isset($this->config->datatable->$datatableId->cols)) $setting = json_decode($this->config->datatable->$datatableId->cols, true);
$fieldList = $this->getFieldList($module);
if(empty($setting))