[-] BO : BugFix : Creating a category in multishop updates her position as well
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15417 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -156,13 +156,10 @@ class CategoryCore extends ObjectModel
|
|||||||
$this->level_depth = $this->calcLevelDepth();
|
$this->level_depth = $this->calcLevelDepth();
|
||||||
$ret = parent::add($autodate, $null_values);
|
$ret = parent::add($autodate, $null_values);
|
||||||
if (Tools::isSubmit('checkBoxShopAsso_category'))
|
if (Tools::isSubmit('checkBoxShopAsso_category'))
|
||||||
foreach (Tools::getValue('checkBoxShopAsso_category') as $row)
|
foreach (Tools::getValue('checkBoxShopAsso_category') as $id_shop => $value)
|
||||||
{
|
{
|
||||||
foreach ($row as $id_shop => $value)
|
$position = Category::getLastPosition((int)$this->id_parent, $id_shop);
|
||||||
{
|
$this->addPosition($position, $id_shop);
|
||||||
$position = Category::getLastPosition((int)$this->id_parent, $id_shop);
|
|
||||||
$this->addPosition($position, $id_shop);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
foreach (Shop::getShops(true) as $shop)
|
foreach (Shop::getShops(true) as $shop)
|
||||||
|
|||||||
Reference in New Issue
Block a user