Skip to content

Commit

Permalink
注文画面 配送方法を選択した際の不具合修正
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsuishi authored and dk-umebius committed Jan 19, 2025
1 parent d7cad72 commit c157616
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Eccube/Form/Type/Shopping/OrderType.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,10 @@ public function buildForm(FormBuilderInterface $builder, array $options)
}
$Payment = !is_null($Payment) && in_array($Payment, $Payments, true) ?
$Payment : (current($Payments) ?: null);
$data['Payment'] = (string)$Payment->getId();
$event->setData($data);
if ( !is_null($Payment)) {
$data['Payment'] = (string)$Payment->getId();
$event->setData($data);
}

$form = $event->getForm();
$this->addPaymentForm($form, $Payments);
Expand Down

0 comments on commit c157616

Please sign in to comment.