[-] BO: Fix product wholesale_price import
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17012 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -760,13 +760,8 @@ class AdminImportControllerCore extends AdminController
|
|||||||
$entity->{$key}[$id_lang_tmp] = $value;
|
$entity->{$key}[$id_lang_tmp] = $value;
|
||||||
}
|
}
|
||||||
else
|
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;
|
$entity->{$key} = isset(self::$validators[$key]) ? call_user_func(self::$validators[$key], $infos) : $infos;
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user