* Use dedicated datatable config for browse view.
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user