Fix issue when assigning user groups in bulk processing
authorMarcel Werk <burntime@woltlab.com>
Mon, 30 Dec 2024 15:45:05 +0000 (16:45 +0100)
committerMarcel Werk <burntime@woltlab.com>
Mon, 30 Dec 2024 15:45:05 +0000 (16:45 +0100)
ref https://www.woltlab.com/community/thread/310377-benutzergruppen-zuweisen-in-massenbearbeitung-ergebnislos/

wcfsetup/install/files/lib/system/bulk/processing/user/AbstractUserGroupsUserBulkProcessingAction.class.php

index 6ddb521158648ddfca877598f2a932cc8587249c..487de354c7c05c6ebc8561a36b8d604f47204999 100644 (file)
@@ -144,4 +144,18 @@ abstract class AbstractUserGroupsUserBulkProcessingAction extends AbstractUserBu
     {
         return true;
     }
+
+    #[\Override]
+    public function getAdditionalParameters(): array
+    {
+        return [
+            'userGroupIDs' => $this->userGroupIDs,
+        ];
+    }
+
+    #[\Override]
+    public function loadAdditionalParameters(array $data): void
+    {
+        $this->userGroupIDs = $data['userGroupIDs'] ?? 0;
+    }
 }