Skip to content

Commit

Permalink
fix baserproject#3587 メールフィールド textareaが確認画面でも入力欄が出てしまう問題を解決
Browse files Browse the repository at this point in the history
  • Loading branch information
kato committed Jul 10, 2024
1 parent 692d78b commit e6cb793
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/baser-core/src/View/Helper/BcFreezeHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,8 @@ public function textarea($fieldName, $options = []): string
$value = $this->getSourceValue($field);
}
if ($value) {
return parent::textarea($fieldName, $options) . nl2br(h($value));
// textarea のままだと<input type="hidden">にならないため、text扱いに変更
return parent::text($fieldName, $options) . nl2br(h($value));
} else {
return "&nbsp;";
}
Expand Down

0 comments on commit e6cb793

Please sign in to comment.