[-] BO : fixed ecotax #PSCFV-4443

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17574 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
dMetzger committed 2012-09-27 07:31:18 +00:00
1 parent 14ccde1851
commit 40c1b55ca8
1 file changed
+1 -1
@@ -293,7 +293,7 @@ class AdminProductsControllerCore extends AdminController
if (Tools::getIsset('unit_price') != null) if (Tools::getIsset('unit_price') != null)
$object->unit_price = str_replace(',', '.', Tools::getValue('unit_price')); $object->unit_price = str_replace(',', '.', Tools::getValue('unit_price'));
if (Tools::getIsset('unit_price') != null) if (Tools::getIsset('ecotax') != null)
$object->ecotax = str_replace(',', '.', Tools::getValue('ecotax')); $object->ecotax = str_replace(',', '.', Tools::getValue('ecotax'));
$object->available_for_order = (int)Tools::getValue('available_for_order'); $object->available_for_order = (int)Tools::getValue('available_for_order');
$object->show_price = $object->available_for_order ? 1 : (int)Tools::getValue('show_price'); $object->show_price = $object->available_for_order ? 1 : (int)Tools::getValue('show_price');