Explorar el Código

Erreur 500 : Argument 1 passed to Lc\SovBundle\Repository\AbstractStore::getOneById() must be of the type int, string given

develop
Guillaume Bourgeois hace 2 años
padre
commit
4bfe1f3ac2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      Controller/Order/CartController.php

+ 1
- 1
Controller/Order/CartController.php Ver fichero

@@ -30,7 +30,7 @@ class CartController extends AbstractController
$data = $request->request->all();

if (isset($data['order_products']['id_product_family'])) {
$idProductFamily = $data['order_products']['id_product_family'];
$idProductFamily = (int) $data['order_products']['id_product_family'];
$this->productFamily = $this->getProductFamilyContainer()->getStore()->getOneById($idProductFamily);

if(!$this->productFamily) {

Cargando…
Cancelar
Guardar