Skip to content

Commit

Permalink
Merge pull request #739 from nanasess/fix-valid-delivery
Browse files Browse the repository at this point in the history
複数の配送方法を選択肢にした場合、無効な配送方法のエラーになるのを修正
  • Loading branch information
dotani1111 authored Oct 23, 2023
2 parents c24cb9b + 95df9d7 commit edd28de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/class/pages/shopping/LC_Page_Shopping_Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,9 @@ public function lfRegistData($uniqid, $arrForm, &$objPurchase, $arrPayment)

$objDelivery = new SC_Helper_Delivery();
$validDelivery = array_filter($objDelivery->getList($this->cartKey), function ($delivery) use ($arrForm) {
return $arrForm['deliv_id'] != $delivery['deliv_id'];
return $arrForm['deliv_id'] == $delivery['deliv_id'];
});
if (!empty($validDelivery)) {
if (empty($validDelivery)) {
trigger_error('無効な配送方法: ' . var_export($arrForm['deliv_id'], true), E_USER_ERROR);
}

Expand Down

0 comments on commit edd28de

Please sign in to comment.