// 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:
+2
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user