[-] BO : BugFix : #PSCFV-2337 : Multishop : Attributes and values : problem creation attribute
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15328 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
6737a5b880
commit
8e871f10ac
2 files changed
+4
-1
No files matched your search
@@ -43,6 +43,7 @@ class AttributeGroupCore extends ObjectModel
|
|||||||
'table' => 'attribute_group',
|
'table' => 'attribute_group',
|
||||||
'primary' => 'id_attribute_group',
|
'primary' => 'id_attribute_group',
|
||||||
'multilang' => true,
|
'multilang' => true,
|
||||||
|
'multishop' => true,
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'is_color_group' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'),
|
'is_color_group' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'),
|
||||||
'group_type' => array('type' => self::TYPE_STRING),
|
'group_type' => array('type' => self::TYPE_STRING),
|
||||||
|
|||||||
@@ -2353,6 +2353,8 @@ class AdminControllerCore extends Controller
|
|||||||
$assos[] = array('id_object' => (int)$id_asso_object, 'id_'.$type => (int)$id_shop);
|
$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);
|
return array($assos, $type);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2368,7 +2370,7 @@ class AdminControllerCore extends Controller
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
$def = ObjectModel::getDefinition($this->className);
|
$def = ObjectModel::getDefinition($this->className);
|
||||||
if (!empty($def['multishop']))
|
if (empty($def['multishop']))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
$assos_data = $this->getAssoShop($this->table, $id_object);
|
$assos_data = $this->getAssoShop($this->table, $id_object);
|
||||||
|
|||||||
Reference in new issue
Block a user