[-] CORE : fixed bug #PSCFV-4634 - Object::cleanPosition() is no longer call in controller but in Object::delete();

This commit is contained in:
vAugagneur
2012-10-03 09:36:25 +00:00
parent cd118e81de
commit 773bbd86d6
6 changed files with 12 additions and 8 deletions
+3 -1
View File
@@ -668,7 +668,9 @@ class ProductCore extends ObjectModel
// If there are still entries in product_shop, don't remove completly the product
if ($this->hasMultishopEntries())
return true;
Product::cleanPositions($this->id);
Hook::exec('actionProductDelete', array('product' => $this));
if (!$result ||
!GroupReduction::deleteProductReduction($this->id) ||