]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Repos/BaseRepo.php
Add the "Create Shelf" resp. "Create Book" to the home view
[bookstack] / app / Entities / Repos / BaseRepo.php
index 78ce505b925ba5c6bcae78a325ce97c1cc601dd2..23f07f82049bc8342346b33c8b889c11f155755e 100644 (file)
@@ -82,6 +82,7 @@ class BaseRepo
             $this->imageRepo->destroyImage($entity->cover);
             $image = $this->imageRepo->saveNew($coverImage, 'cover_book', $entity->id, 512, 512, true);
             $entity->cover()->associate($image);
+            $entity->save();
         }
 
         if ($removeImage) {