From 315d5ed402e70b97df7fd8779b84b6aa22f62de0 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Mon, 28 Oct 2019 10:44:59 +0800 Subject: [PATCH] * finish task #9223. --- module/datatable/model.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/module/datatable/model.php b/module/datatable/model.php index 7899dc48f7..6b6a7a4c87 100644 --- a/module/datatable/model.php +++ b/module/datatable/model.php @@ -95,11 +95,17 @@ class datatableModel extends model { foreach($setting as $key => $set) { + if(!isset($fieldList[$set->id])) + { + unset($setting[$key]); + continue; + } if($this->session->currentProductType === 'normal' and $set->id === 'branch') { unset($setting[$key]); continue; } + if($set->id == 'actions') $set->width = $fieldList[$set->id]['width']; $set->title = $fieldList[$set->id]['title']; $set->sort = isset($fieldList[$set->id]['sort']) ? $fieldList[$set->id]['sort'] : 'yes';