// id_shop on cart product (for links) + change Shop::sqlAsso() + share_order
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7687 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -32,14 +32,16 @@ class GroupShopCore extends ObjectModel
|
||||
{
|
||||
public $name;
|
||||
public $active;
|
||||
public $share_datas;
|
||||
public $share_customer;
|
||||
public $share_order;
|
||||
public $share_stock;
|
||||
public $deleted;
|
||||
|
||||
protected $fieldsSize = array('name' => 64);
|
||||
protected $fieldsValidate = array(
|
||||
'active' => 'isBool',
|
||||
'share_datas' => 'isBool',
|
||||
'share_customer' => 'isBool',
|
||||
'share_order' => 'isBool',
|
||||
'share_stock' => 'isBool',
|
||||
'name' => 'isGenericName',
|
||||
);
|
||||
@@ -63,8 +65,9 @@ class GroupShopCore extends ObjectModel
|
||||
parent::validateFields();
|
||||
|
||||
$fields['name'] = pSQL($this->name);
|
||||
$fields['share_datas'] = (int)$this->share_datas;
|
||||
$fields['share_customer'] = (int)$this->share_customer;
|
||||
$fields['share_stock'] = (int)$this->share_stock;
|
||||
$fields['share_order'] = ($fields['share_customer'] && $fields['share_stock']) ? (int)$this->share_order : false;
|
||||
$fields['active'] = (int)$this->active;
|
||||
$fields['deleted'] = (int)$this->deleted;
|
||||
return $fields;
|
||||
|
||||
Reference in New Issue
Block a user