properly pass the data array into the 'checkout.order.safe.before' event

This commit is contained in:
Herbert Maschke 2020-07-06 14:46:19 +02:00
parent 1b7b6f91bd
commit ef99a1e981
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ class OrderRepository extends Repository
DB::beginTransaction();
try {
Event::dispatch('checkout.order.save.before', $data);
Event::dispatch('checkout.order.save.before', [$data]);
if (isset($data['customer']) && $data['customer']) {
$data['customer_id'] = $data['customer']->id;