From c060a26fcd6116326db8d53066641ba44fc2631a Mon Sep 17 00:00:00 2001 From: liugang Date: Mon, 24 Apr 2023 01:44:35 +0000 Subject: [PATCH 1/2] * Fix sql error. --- db/update18.3.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/update18.3.sql b/db/update18.3.sql index 062c9fcc37..67e915554a 100644 --- a/db/update18.3.sql +++ b/db/update18.3.sql @@ -945,7 +945,7 @@ CHANGE `extra` `extra` char(30) NOT NULL DEFAULT ''; ALTER TABLE `zt_release` CHANGE `project` `project` varchar(255) NOT NULL DEFAULT '0', -CHANGE `leftBugs` `leftBugs` text NULL; +CHANGE `leftBugs` `leftBugs` text NULL, CHANGE `notify` `notify` varchar(255) NOT NULL default ''; ALTER TABLE `zt_researchplan` From 7527b808bb74a9f5e0530e68fd572f89d1eb63d0 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Mon, 24 Apr 2023 02:01:01 +0000 Subject: [PATCH 2/2] * Code for bug#34621. --- module/chart/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/chart/control.php b/module/chart/control.php index f67f1b0b30..89803baf81 100644 --- a/module/chart/control.php +++ b/module/chart/control.php @@ -181,7 +181,7 @@ class chart extends control $sql = str_replace(';', '', "$post->sql"); $fields = $post->fieldSettings; - $langs = isset($post->langs) ? json_decode($post->langs, true) : array(); + $langs = !empty($post->langs) ? $post->langs : array(); switch($type) {