From b7a5a317087af0865b5d5d383cdc3131b3db0090 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Thu, 2 Jan 2014 19:25:51 +0100 Subject: [PATCH] Adds missing condition when updating categories' showOrder value --- .../install/files/lib/data/category/CategoryEditor.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wcfsetup/install/files/lib/data/category/CategoryEditor.class.php b/wcfsetup/install/files/lib/data/category/CategoryEditor.class.php index 8cf89df4b3..7c5ee417b8 100644 --- a/wcfsetup/install/files/lib/data/category/CategoryEditor.class.php +++ b/wcfsetup/install/files/lib/data/category/CategoryEditor.class.php @@ -77,11 +77,13 @@ class CategoryEditor extends DatabaseObjectEditor implements IEditableCachedObje SET showOrder = showOrder + 1 WHERE showOrder >= ? AND showOrder < ? + AND parentCategoryID = ? AND objectTypeID = ?"; $statement = WCF::getDB()->prepareStatement($sql); $statement->execute(array( $showOrder, $this->showOrder, + $this->parentCategoryID, $this->objectTypeID )); } -- 2.20.1