Fix SQL query for excluded trophy categories in boxes
authorJoshua Rüsweg <ruesweg@woltlab.com>
Thu, 19 Dec 2019 13:07:16 +0000 (14:07 +0100)
committerJoshua Rüsweg <ruesweg@woltlab.com>
Thu, 19 Dec 2019 13:07:22 +0000 (14:07 +0100)
wcfsetup/install/files/lib/system/condition/user/trophy/UserTrophyExcludedTrophyCategoriesCondition.class.php

index 58207dfb2e8efe5e6ce96a8d8cc1fe272e04b7d1..0df3f10fba091822012fafb3f0e960caed65fb8c 100644 (file)
@@ -39,7 +39,7 @@ class UserTrophyExcludedTrophyCategoriesCondition extends AbstractMultiSelectCon
                        throw new \InvalidArgumentException("Object list is no instance of '".UserTrophyList::class."', instance of '".get_class($objectList)."' given.");
                }
                
-               $objectList->getConditionBuilder()->add('user_trophy.category NOT IN (?)', [$conditionData[$this->fieldName]]);
+               $objectList->getConditionBuilder()->add('trophy.categoryID NOT IN (?)', [$conditionData[$this->fieldName]]);
        }
        
        /**