Fixed wrong column name.
authorJim Martens <jim1@live.de>
Tue, 25 Sep 2012 15:41:38 +0000 (17:41 +0200)
committerJim Martens <jim1@live.de>
Tue, 25 Sep 2012 15:41:38 +0000 (17:41 +0200)
wcfsetup/install/files/lib/system/clipboard/ClipboardHandler.class.php

index 99beee71eac4ea43efa243b0f33a1d5b170c290a..67bee17925c066c66b63b5ba61915c4719c5168a 100644 (file)
@@ -297,7 +297,7 @@ class ClipboardHandler extends SingletonFactory {
        public function removeItems($typeID = null) {
                $conditions = new PreparedStatementConditionBuilder();
                $conditions->add("userID = ?", array(WCF::getUser()->userID));
-               if ($typeID !== null) $conditions->add("typeID = ?", array($typeID));
+               if ($typeID !== null) $conditions->add("objectTypeID = ?", array($typeID));
                
                $sql = "DELETE FROM     wcf".WCF_N."_clipboard_item
                        ".$conditions;