[-] BO : BugFix : #PSCFV-2337 : Multishop : Attributes and values : problem creation attribute

This commit is contained in:
vChabot
2012-05-16 09:05:23 +00:00
parent 9204e2e455
commit c3275c34df
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -2353,6 +2353,8 @@ class AdminControllerCore extends Controller
$assos[] = array('id_object' => (int)$id_asso_object, 'id_'.$type => (int)$id_shop);
}
}
else // if we do not have the checkBox multishop, we can have an admin with only one shop and being in multishop
$assos[] = array('id_object' => (int)$id_object, 'id_'.$type => (int)Shop::getContextShopID());
return array($assos, $type);
}
@@ -2368,7 +2370,7 @@ class AdminControllerCore extends Controller
return;
$def = ObjectModel::getDefinition($this->className);
if (!empty($def['multishop']))
if (empty($def['multishop']))
return;
$assos_data = $this->getAssoShop($this->table, $id_object);