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

This commit is contained in:
François Gaillard
2012-01-11 14:32:38 +00:00
parent 9b70a07d9b
commit 11dda92b61
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -169,7 +169,7 @@ class ProductCore extends ObjectModel
public $available_for_order = 1;
/** @var string Object available order date */
public $available_date;
public $available_date = '0000-00-00';
/** @var enum Product condition (new, used, refurbished) */
public $condition;
+2
View File
@@ -611,6 +611,8 @@ class StockAvailableCore extends ObjectModel
$group_ok = true;
}
else
$params['id_group_shop'] = 0;
// if no group specific restriction, set simple shop restriction
if (!$group_ok)