]> _ Git - fluidbook-toolbox.git/commitdiff
wait #6487 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 23 Nov 2023 17:01:54 +0000 (18:01 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 23 Nov 2023 17:01:54 +0000 (18:01 +0100)
app/Models/FluidbookCollection.php
app/Models/FluidbookPublication.php

index 0763c07f8145cb51943874d10ea420b231a76bc3..baa03cace931e437f48b97ef5979991ea601ed40 100644 (file)
@@ -86,6 +86,8 @@ class FluidbookCollection extends ToolboxStatusModel
     public function onSaving(): bool
     {
         $this->checkHash();
+        $this->setOwner($this->owner);
+        $this->setStatus($this->status);
         return parent::onSaving();
     }
 
index d1fae6073b329c83aee56ee4f3f6705ef4215a61..446b49ffcfb0bf9d01e95000d08a8f56546dcf91 100644 (file)
@@ -279,6 +279,8 @@ class FluidbookPublication extends ToolboxStatusModel
         if ($this->_compositionUpdated) {
             $this->setAttribute('composition_updated_at', new Datetime());
         }
+        $this->setOwner($this->owner);
+        $this->setStatus($this->status);
         return parent::onSaving();
     }