From 754b067448b41cb2e64fe72005ecc12cff6f054b Mon Sep 17 00:00:00 2001 From: liugang Date: Fri, 3 Nov 2023 14:40:39 +0800 Subject: [PATCH] + chartModel: decode the lang property of a chart. --- module/chart/model.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/module/chart/model.php b/module/chart/model.php index 07530b6592..d1cd62162c 100644 --- a/module/chart/model.php +++ b/module/chart/model.php @@ -117,6 +117,9 @@ class chartModel extends model if($chart->sql == null) $chart->sql = ''; if($chart->sql) $chart->sql = trim(str_replace(';', '', $chart->sql)); + $chart->langs = json_decode($chart->langs, true); + if($chart->langs === null) $chart->langs = array(); + $chart->filters = json_decode($chart->filters, true); if($chart->filters === null) $chart->filters = array();