From c43b04fa628a3d4811b9040570aa2def49ba02b0 Mon Sep 17 00:00:00 2001 From: qixinzhi Date: Mon, 18 Dec 2023 10:13:16 +0800 Subject: [PATCH] Revert "* Fix chart type." This reverts commit e0e15473e35a259db80e8960de235a2e01ab5b49. --- module/screen/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();