From: Matthias Schmidt Date: Thu, 2 Jan 2014 18:25:51 +0000 (+0100) Subject: Adds missing condition when updating categories' showOrder value X-Git-Tag: 2.0.1~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b7a5a317087af0865b5d5d383cdc3131b3db0090;p=GitHub%2FWoltLab%2FWCF.git Adds missing condition when updating categories' showOrder value --- 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 )); }