Sfoglia il codice sorgente

Correctif OrderUtils : addOrderProduct

feature/export_comptable
Guillaume 4 anni fa
parent
commit
5754577908
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. +4
    -1
      ShopBundle/Services/OrderUtils.php

+ 4
- 1
ShopBundle/Services/OrderUtils.php Vedi File

@@ -126,7 +126,10 @@ class OrderUtils
if (!$updated) {
$orderShop->addOrderProduct($orderProductAdd);

$this->em->persist($orderProductReductionCatalog);
if(isset($orderProductReductionCatalog)) {
$this->em->persist($orderProductReductionCatalog);
}

$this->em->persist($orderProductAdd);
$this->em->persist($orderShop);
}

Loading…
Annulla
Salva