// Fix shop association on new object + some strict standard for Franck

This commit is contained in:
rMalie
2011-07-11 13:18:17 +00:00
parent 55007357e1
commit 923269001b
5 changed files with 23 additions and 22 deletions
+3 -3
View File
@@ -1109,16 +1109,16 @@ class shopimporter extends ImportModule
return true;
}
public function cleanPositions($table)
public function cleanPositions($table, $shopList = null)
{
if($table == 'category')
if ($table == 'category')
{
//clean category position
$cat = Category::getCategories(1, false, false);
foreach($cat AS $i => $categ)
Category::cleanPositions((int)($categ['id_category']));
}
if($table == 'product')
if ($table == 'product')
{
//clean products position
$cat = Category::getCategories(1, false, false);