Skip to content

Commit 8e38b0b

Browse files
committed
fix(tags): broken tag deletion on user delete
There's a typo here. It's getting tagIds but then trying to use it as a uid. This causes hard failures. Signed-off-by: Varun Patil <varunpatil@ucla.edu>
1 parent 2bd30c3 commit 8e38b0b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/TagManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public function handle(Event $event): void {
126126
// Clean vcategory
127127
$qb1 = $this->connection->getQueryBuilder();
128128
$qb1 = $qb1->delete('vcategory')
129-
->where($qb1->expr()->in('uid', $qb1->createParameter('chunk')));
129+
->where($qb1->expr()->in('id', $qb1->createParameter('chunk')));
130130

131131
foreach (array_chunk($tagsIds, IQueryBuilder::MAX_IN_PARAMETERS) as $tagChunk) {
132132
$qb->setParameter('chunk', $tagChunk, IQueryBuilder::PARAM_INT_ARRAY);

0 commit comments

Comments
 (0)