// 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:
1 parent
feabf30c20
commit
0c49b5b416
1 file changed
+2
-1
+2
-1
@@ -347,7 +347,8 @@ if (array_key_exists('ajaxProductImagesPositions', $_POST))
|
|||||||
$pos = explode('_', $value);
|
$pos = explode('_', $value);
|
||||||
if ((isset($pos[1])) AND ($pos[1] == $id_image))
|
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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user