From dd9eda90fc522bd99f9702f1fe83b02e9e1c06f8 Mon Sep 17 00:00:00 2001 From: daitingting Date: Tue, 9 Jan 2024 08:17:24 +0000 Subject: [PATCH] * Fix bug #43450. --- module/chart/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/chart/model.php b/module/chart/model.php index 9dcd0446c2..a3cb547e9e 100644 --- a/module/chart/model.php +++ b/module/chart/model.php @@ -509,7 +509,7 @@ class chartModel extends model if($table) $options = $this->dao->select("id, {$field}")->from($table)->fetchPairs(); } break; - case 'string': + default: if($field and $sql) { $cols = $this->dbh->query($sql)->fetchAll();