* Use dedicated datatable config for browse view.

This commit is contained in:
dingguodong
2023-06-19 14:16:24 +08:00
parent 37521a1db7
commit e0f7b7310c
3 changed files with 131 additions and 12 deletions
-6
View File
@@ -97,12 +97,6 @@ class datatableModel extends model
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($module == 'program' and $method == 'browse')
{
$method = 'projectView'; /* Use projectView datatable setting in program module . */
$setting = json_decode($this->config->datatable->programProjectView->cols, true); /* Fetch the customized table data from database. */
}
$fieldList = $this->getFieldList($module, $method);
if(empty($setting))
{