Change type of `$action`
authorCyperghost <olaf_schmitz_1@t-online.de>
Tue, 23 Jan 2024 13:51:02 +0000 (14:51 +0100)
committerCyperghost <olaf_schmitz_1@t-online.de>
Tue, 23 Jan 2024 13:51:02 +0000 (14:51 +0100)
wcfsetup/install/files/lib/acp/form/AbstractBulkProcessingForm.class.php
wcfsetup/install/files/lib/system/worker/BulkProcessingWorker.class.php

index 43fdb223d28764e41f4e82aecccba85b588c9dfc..12ef7a56855405dfbbd9d2cbeefff4a5b5b2a4c6 100644 (file)
@@ -2,11 +2,10 @@
 
 namespace wcf\acp\form;
 
-use wcf\data\object\type\AbstractObjectTypeProcessor;
 use wcf\data\object\type\ObjectType;
 use wcf\data\object\type\ObjectTypeCache;
 use wcf\form\AbstractForm;
-use wcf\system\bulk\processing\IBulkProcessingAction;
+use wcf\system\bulk\processing\AbstractBulkProcessingAction;
 use wcf\system\exception\IllegalLinkException;
 use wcf\system\exception\UserInputException;
 use wcf\system\request\LinkHandler;
@@ -184,7 +183,7 @@ abstract class AbstractBulkProcessingForm extends AbstractForm
         }
 
         $action = $this->actions[$this->action]->getProcessor();
-        /** @var IBulkProcessingAction&AbstractObjectTypeProcessor $action */
+        /** @var AbstractBulkProcessingAction $action */
         if ($action->canRunInWorker()) {
             $this->objectList->readObjectIDs();
 
index 4e3e32f641002b26e1adb89d34dab8bcb5e7ed89..a224681810ca29457926db20a7b3f3c874c2c01a 100644 (file)
@@ -18,7 +18,7 @@ final class BulkProcessingWorker extends AbstractWorker
     /**
      * @inheritDoc
      */
-    protected $limit = 100;
+    protected $limit = 1;
     protected array $bulkProcessingData;
     protected IBulkProcessingAction $action;