* Fix dashboard update bug.

This commit is contained in:
songchenxuan
2023-06-27 10:11:08 +08:00
parent a0269173fd
commit 3d7c6fbd1e
+7
View File
@@ -8514,6 +8514,13 @@ class upgradeModel extends model
if($chart)
{
if($chart->sql)
{
$this->dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);
$stmt = $this->dbh->query($chart->sql);
if(!$stmt) continue;
}
$settings = $chart->settings;
if($type == 'chart') $chartType = $chart->builtin ? $chart->type : $settings[0]['type'];
if($type == 'pivot') $chartType = 'table';