Skip to content

Commit

Permalink
BcFreezeHelper にて、フリーズした際に、入力欄が表示されてしまう場合がある問題を改善
Browse files Browse the repository at this point in the history
control() メソッド経由で呼び出した場合に再現
  • Loading branch information
ryuring committed Oct 27, 2024
1 parent a38d874 commit 7710fcf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions plugins/baser-core/src/View/Helper/BcFreezeHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
}
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 7710fcf

Please sign in to comment.