// fix image drag&drop

This commit is contained in:
tDidierjean
2011-09-13 15:34:41 +00:00
parent 36ae7699df
commit 4cf2ab6299
+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;
}
}