Skip to content

Commit 4c98668

Browse files
Your Namebackportbot[bot]
authored andcommitted
fix: webhook payload for system tag events
Signed-off-by: Your Name <you@example.com>
1 parent 9cd251a commit 4c98668

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/private/SystemTag/SystemTagObjectMapper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,8 @@ function (ISystemTag $tag) {
292292
*/
293293
public function setObjectIdsForTag(string $tagId, string $objectType, array $objectIds): void {
294294
$currentObjectIds = $this->getObjectIdsForTags($tagId, $objectType);
295-
$removedObjectIds = array_diff($currentObjectIds, $objectIds);
296-
$addedObjectIds = array_diff($objectIds, $currentObjectIds);
295+
$removedObjectIds = array_values(array_diff($currentObjectIds, $objectIds));
296+
$addedObjectIds = array_values(array_diff($objectIds, $currentObjectIds));
297297

298298
$this->connection->beginTransaction();
299299
$query = $this->connection->getQueryBuilder();

0 commit comments

Comments
 (0)