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();