[-] BO : fix #PSCFV-4344

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17601 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lLefevre
2012-09-28 08:08:08 +00:00
parent 63ae5ba573
commit a91e7c4264
@@ -1370,6 +1370,8 @@ class AdminImportControllerCore extends AdminController
$error = false;
if (!empty($url))
{
$url = str_replace(' ', '%20', $url);
$image = new Image();
$image->id_product = (int)$product->id;
$image->position = Image::getHighestPosition($product->id) + 1;