diff --git a/module/screen/model.php b/module/screen/model.php index 387524a20d..385464d526 100644 --- a/module/screen/model.php +++ b/module/screen/model.php @@ -205,7 +205,7 @@ class screenModel extends model $chartID = zget($component->chartConfig, 'sourceID', ''); if(!$chartID) return $component; - $type = $component->chartConfig->package; + $type = zget($component->chartConfig, 'key', ''); $type = $this->getChartType($type); $table = $this->config->objectTables[$type]; $chart = $this->dao->select('*')->from($table)->where('id')->eq($chartID)->fetch();