Skip to content

Commit

Permalink
fix #2904 [baserCMS4系]メールフォーム セレクトボックスの選択肢の末尾に半角スペースが入っていると、確認画面で選択が外…
Browse files Browse the repository at this point in the history
…れる問題を解決 (#2905)

Co-authored-by: kato <kato@e-catchup.jp>
  • Loading branch information
katokaisya and kato committed Dec 1, 2023
1 parent 2e5cf55 commit 34ac3cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Baser/Plugin/Mail/View/Helper/MailfieldHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function getOptions($data)
$values = explode("\n", str_replace('|', "\n", $data['source']));
$source = [];
foreach($values as $value) {
$source[$value] = $value;
$source[trim($value)] = trim($value);
}
return $source;
}
Expand Down

0 comments on commit 34ac3cd

Please sign in to comment.