Skip to content

Commit

Permalink
Fix #4636 カナフィールドの入力が Null だと例外が発生する問題を修正
Browse files Browse the repository at this point in the history
例外が発生時に、バリデーションエラーが正常に画面に反映されない問題が修正されます
  • Loading branch information
eternalharvest committed Aug 15, 2020
1 parent f6f49d3 commit a078f8b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Eccube/Form/EventListener/ConvertKanaListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ public static function getSubscribedEvents()
public function onPreSubmit(FormEvent $event)
{
$data = $event->getData();
if (is_null($data)) {
return;
}

if (is_array($data)) {
foreach ($data as &$value) {
Expand Down

0 comments on commit a078f8b

Please sign in to comment.