From ffe6d9fc22484769b35e3ba3c25832f482725079 Mon Sep 17 00:00:00 2001 From: Makar Sichevoy Date: Mon, 15 Jun 2015 17:46:02 +0300 Subject: [PATCH] CRM-3526: Shopping Items moved from Active to Deleted after creating new Cart --- .../MagentoBundle/ImportExport/Strategy/CartStrategy.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/OroCRM/Bundle/MagentoBundle/ImportExport/Strategy/CartStrategy.php b/src/OroCRM/Bundle/MagentoBundle/ImportExport/Strategy/CartStrategy.php index 340c5902992..7f28621e375 100644 --- a/src/OroCRM/Bundle/MagentoBundle/ImportExport/Strategy/CartStrategy.php +++ b/src/OroCRM/Bundle/MagentoBundle/ImportExport/Strategy/CartStrategy.php @@ -46,7 +46,9 @@ protected function beforeProcessEntity($entity) */ protected function afterProcessEntity($entity) { - $this->updateRemovedCartItems($entity); + if ($entity->getStatus()->getName() === CartStatus::STATUS_OPEN) { + $this->updateRemovedCartItems($entity); + } if (!$this->hasContactInfo($entity)) { return null;