Skip to content

Commit

Permalink
Merge pull request EC-CUBE#5997 from KenTanaka/issue_4031
Browse files Browse the repository at this point in the history
購入エラー画面ではWarningレベルのメッセージを削除する.
  • Loading branch information
dotani1111 authored Jun 1, 2023
2 parents 56310f7 + fb3a5b0 commit 9a7ece6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Eccube/Controller/ShoppingController.php
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,12 @@ public function error(Request $request, PurchaseFlow $cartPurchaseFlow)
$this->cartService->save();
}

// 購入エラー画面についてはwarninメッセージを出力しない為、warningレベルのメッセージが存在する場合、削除する.
// (warningが残っている場合、購入エラー画面以降のタイミングで誤って表示されてしまう為.)
if ($this->session->getFlashBag()->has('eccube.front.warning')) {
$this->session->getFlashBag()->get('eccube.front.warning');
}

$event = new EventArgs(
[],
$request
Expand Down

0 comments on commit 9a7ece6

Please sign in to comment.