[-] BO: Fix product wholesale_price import

This commit is contained in:
rGaillard
2012-08-27 09:45:23 +00:00
parent 863b06d247
commit c659145aa5
+1 -6
View File
@@ -760,13 +760,8 @@ class AdminImportControllerCore extends AdminController
$entity->{$key}[$id_lang_tmp] = $value;
}
else
{
// If the type is float, we need to cast it in order to avoid problem with "," and ".".
$class = get_class($entity);
if (isset($class::$definition['fields'][$key]['type']) && $class::$definition['fields'][$key]['type'] == ObjectModel::TYPE_FLOAT)
$infos = (float)$infos;
$entity->{$key} = isset(self::$validators[$key]) ? call_user_func(self::$validators[$key], $infos) : $infos;
}
return true;
}