// fix image drag&drop

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8543 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2011-09-13 15:34:41 +00:00
parent feabf30c20
commit 0c49b5b416
+2 -1
View File
@@ -347,7 +347,8 @@ if (array_key_exists('ajaxProductImagesPositions', $_POST))
$pos = explode('_', $value);
if ((isset($pos[1])) AND ($pos[1] == $id_image))
{
$position = $key;
// +1 is added because images position range starts from 1 instead of 0 for other objects (products, categories...)
$position = ($key + 1);
break;
}
}