From 4cf2ab6299dd5cbd0a5005d34925b27b13860a90 Mon Sep 17 00:00:00 2001 From: tDidierjean Date: Tue, 13 Sep 2011 15:34:41 +0000 Subject: [PATCH] // fix image drag&drop --- admin-dev/ajax.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin-dev/ajax.php b/admin-dev/ajax.php index 3d0b4175f..a51f4a3b6 100644 --- a/admin-dev/ajax.php +++ b/admin-dev/ajax.php @@ -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; } }