From e77f8376b04950703740cb4bb8767fc625fd1ce5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 20 Apr 2023 14:54:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GiiModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GiiModel.php b/GiiModel.php index 56b1223..c50afe9 100644 --- a/GiiModel.php +++ b/GiiModel.php @@ -237,7 +237,7 @@ class ' . $managerName . ' extends Model foreach ($data as $key => $val) { $field = '[\'' . implode('\', \'', array_column($val, 'Field')) . '\']'; if (count($val) == 1) { - $field = '\'' . current($val)['Field'] . '\''; + $field = '[\'' . current($val)['Field'] . '\']'; } $_field_one .= ' [' . $field . ', \'' . $key . '\'],';