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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12355 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
fGaillard committed 2012-01-11 14:32:38 +00:00
1 parent a8193f0cff
commit c5994e8c2f
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)