From: Matthias Schmidt Date: Mon, 6 May 2013 19:59:57 +0000 (+0200) Subject: Fixes PageMenuItemAction::updatePosition() X-Git-Tag: 2.0.0_Beta_1~246 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=068b36e97783d8cea4c63c89328fc022b98dabce;p=GitHub%2FWoltLab%2FWCF.git Fixes PageMenuItemAction::updatePosition() --- diff --git a/wcfsetup/install/files/lib/data/page/menu/item/PageMenuItemAction.class.php b/wcfsetup/install/files/lib/data/page/menu/item/PageMenuItemAction.class.php index c792fc0dd9..86ee719224 100644 --- a/wcfsetup/install/files/lib/data/page/menu/item/PageMenuItemAction.class.php +++ b/wcfsetup/install/files/lib/data/page/menu/item/PageMenuItemAction.class.php @@ -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 )); }