Fixes PageMenuItemAction::updatePosition()
authorMatthias Schmidt <gravatronics@live.com>
Mon, 6 May 2013 19:59:57 +0000 (21:59 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 6 May 2013 19:59:57 +0000 (21:59 +0200)
wcfsetup/install/files/lib/data/page/menu/item/PageMenuItemAction.class.php

index c792fc0dd9ddaae8c09bd4b0162bf743186cadec..86ee719224603ad0348e76013d884ee41d0463c9 100644 (file)
@@ -139,7 +139,7 @@ class PageMenuItemAction extends AbstractDatabaseObjectAction implements ISortab
                        foreach ($menuItems as $showOrder => $menuItemID) {
                                $statement->execute(array(
                                        ($parentMenuItemID ? $this->menuItems[$parentMenuItemID]->menuItem : ''),
-                                       $showOrder,
+                                       $showOrder + 1,
                                        $menuItemID
                                ));
                        }