[-] BO : Fixed default values when add new product (available-date & default id group shop)

This commit is contained in:
Francois Gaillard committed 2012-01-11 14:32:38 +00:00
1 parent eecd666997
commit 54b4b8e70a
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -169,7 +169,7 @@ class ProductCore extends ObjectModel
public $available_for_order = 1; public $available_for_order = 1;
/** @var string Object available order date */ /** @var string Object available order date */
public $available_date; public $available_date = '0000-00-00';
/** @var enum Product condition (new, used, refurbished) */ /** @var enum Product condition (new, used, refurbished) */
public $condition; public $condition;
+2
View File
@@ -611,6 +611,8 @@ class StockAvailableCore extends ObjectModel
$group_ok = true; $group_ok = true;
} }
else
$params['id_group_shop'] = 0;
// if no group specific restriction, set simple shop restriction // if no group specific restriction, set simple shop restriction
if (!$group_ok) if (!$group_ok)