[-] BO : fixed product indexation markup in import #PSCFV-7695

This commit is contained in:
Damien Metzger
2013-03-20 10:43:18 +01:00
parent d683478818
commit 77002bb3f5
@@ -1261,6 +1261,9 @@ class AdminImportControllerCore extends AdminController
foreach (Product::$definition['fields'] as $key => $array)
if ($array['type'] == Product::TYPE_FLOAT)
$product->{$key} = str_replace(',', '.', $product->{$key});
// Indexation is already 0 if it's a new product, but not if it's an update
$product->indexed = 0;
$res = false;
$field_error = $product->validateFields(UNFRIENDLY_ERROR, true);