Merge branch '356-fix-error-btq' into 'develop'
fix: 🐛 handle missing civility value
See merge request ldc-web/projets/le-gaulois!320
This commit is contained in:
commit
b718a95621
1 changed files with 2 additions and 0 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace App\Http\Controllers\Club;
|
||||
|
||||
use App\Enums\Shop\ContactFormCivility;
|
||||
use App\Enums\Shop\OrderStatus;
|
||||
use App\Enums\Shop\OrderType;
|
||||
use App\Exceptions\CBPayementError;
|
||||
|
|
@ -69,6 +70,7 @@ class ShopController extends Controller
|
|||
$order->payementType = OrderType::make(intval($request->payementMethod));
|
||||
$order->status = OrderStatus::waiting;
|
||||
$order->customer_id = $customerModel->getKey();
|
||||
$order->civility = ContactFormCivility::m; // FIXME: Remove this field
|
||||
$order->fill($request->coords);
|
||||
$order->saveOrFail();
|
||||
} catch (QueryException $e) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue