From 7710fcfe23f9871184cdeaf133d7ae7d4b9335e4 Mon Sep 17 00:00:00 2001 From: ryuring Date: Sun, 27 Oct 2024 14:25:18 +0900 Subject: [PATCH] =?UTF-8?q?BcFreezeHelper=20=E3=81=AB=E3=81=A6=E3=80=81?= =?UTF-8?q?=E3=83=95=E3=83=AA=E3=83=BC=E3=82=BA=E3=81=97=E3=81=9F=E9=9A=9B?= =?UTF-8?q?=E3=81=AB=E3=80=81=E5=85=A5=E5=8A=9B=E6=AC=84=E3=81=8C=E8=A1=A8?= =?UTF-8?q?=E7=A4=BA=E3=81=95=E3=82=8C=E3=81=A6=E3=81=97=E3=81=BE=E3=81=86?= =?UTF-8?q?=E5=A0=B4=E5=90=88=E3=81=8C=E3=81=82=E3=82=8B=E5=95=8F=E9=A1=8C?= =?UTF-8?q?=E3=82=92=E6=94=B9=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit control() メソッド経由で呼び出した場合に再現 --- plugins/baser-core/src/View/Helper/BcFreezeHelper.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/baser-core/src/View/Helper/BcFreezeHelper.php b/plugins/baser-core/src/View/Helper/BcFreezeHelper.php index 66f1ab46cb..cd2a4f5ef3 100755 --- a/plugins/baser-core/src/View/Helper/BcFreezeHelper.php +++ b/plugins/baser-core/src/View/Helper/BcFreezeHelper.php @@ -68,7 +68,7 @@ public function text(string $fieldName, array $options = []): string $field = $fieldName; } if (isset($options)) { - $options = $options + ['type' => 'hidden']; + $options = array_merge($options, ['type' => 'hidden']); } else { $options = ['type' => 'hidden']; } @@ -349,7 +349,11 @@ public function textarea($fieldName, $options = []): string } else { $field = $fieldName; } - $options = $options + ['type' => 'hidden']; + if (isset($options)) { + $options = array_merge($options, ['type' => 'hidden']); + } else { + $options = ['type' => 'hidden']; + } if (isset($options["value"])) { $value = $options["value"]; } else {