From e3818f29995d3572574fd13b907671009fd05deb Mon Sep 17 00:00:00 2001 From: wangyuting2 <851424971@qq.com> Date: Thu, 20 Apr 2023 11:13:04 +0800 Subject: [PATCH] * Fix chart browse bug. --- module/chart/model.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/module/chart/model.php b/module/chart/model.php index 9a6379f845..8a288f7650 100644 --- a/module/chart/model.php +++ b/module/chart/model.php @@ -100,10 +100,14 @@ class chartModel extends model if(!$groups) return array('', array()); $chartGroups = array(); + $this->loadModel('screen'); foreach($groups as $group) { $chartGroups[$group->id] = $this->dao->select('*')->from(TABLE_CHART) ->where('deleted')->eq(0) + ->andWhere('builtin', true)->eq('0') + ->orWhere('id')->in($this->config->screen->builtinChart) + ->markRight(1) ->andWhere("FIND_IN_SET($group->id, `group`)") ->andWhere('stage')->ne('draft') ->orderBy($orderBy)