@@ -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); | |||
} |