AbstractDatabaseObjectAction::setObjects() does not set the objectIDs
authorMagnus Kühn <magnus.khn@gmail.com>
Sun, 22 Dec 2013 20:50:40 +0000 (21:50 +0100)
committerMagnus Kühn <magnus.khn@gmail.com>
Sun, 22 Dec 2013 20:50:40 +0000 (21:50 +0100)
wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php

index 202837d65bb586886bf6c1f8e3abc2c284c91189..9cf204ea59a3393716355258f90177f5bd1d4f8d 100644 (file)
@@ -222,6 +222,12 @@ abstract class AbstractDatabaseObjectAction implements IDatabaseObjectAction, ID
         */
        public function setObjects(array $objects) {
                $this->objects = $objects;
+               
+               // update object IDs
+               $this->objectIDs = array();
+               foreach ($this->objects as $object) {
+                       $this->objectIDs[] = $object->getObjectID();
+               }
        }
        
        /**