// fix on product update and creation

This commit is contained in:
vChabot committed 2012-05-18 14:45:41 +00:00
1 parent 589b6f8dd9
commit cc207b30ce
1 file changed
+2 -6
@@ -1425,7 +1425,6 @@ class AdminProductsControllerCore extends AdminController
$this->updateAccessories($this->object); $this->updateAccessories($this->object);
$this->updatePackItems($this->object); $this->updatePackItems($this->object);
$this->updateDownloadProduct($this->object); $this->updateDownloadProduct($this->object);
$this->updateAssoShop($this->object->id);
if (empty($this->errors)) if (empty($this->errors))
{ {
@@ -1527,6 +1526,8 @@ class AdminProductsControllerCore extends AdminController
{ {
if ($this->isTabSubmitted('Shipping')) if ($this->isTabSubmitted('Shipping'))
$this->addCarriers(); $this->addCarriers();
if ($this->isTabSubmitted('Associations'))
$this->updateAccessories($object);
if ($this->isTabSubmitted('Suppliers')) if ($this->isTabSubmitted('Suppliers'))
$this->processSuppliers(); $this->processSuppliers();
if ($this->isTabSubmitted('Warehouses')) if ($this->isTabSubmitted('Warehouses'))
@@ -1545,11 +1546,6 @@ class AdminProductsControllerCore extends AdminController
$this->processCustomizationConfiguration(); $this->processCustomizationConfiguration();
if ($this->isTabSubmitted('Attachments')) if ($this->isTabSubmitted('Attachments'))
$this->processAttachments(); $this->processAttachments();
if ($this->isTabSubmitted('Associations'))
{
$this->updateAccessories($object);
$this->updateAssoShop($object->id);
}
$this->updatePackItems($object); $this->updatePackItems($object);
$this->updateDownloadProduct($object, 1); $this->updateDownloadProduct($object, 1);