]> BookStack Code Mirror - bookstack/commitdiff
Fix for missing cover on create new shelf 1899/head
authorTBK <redacted>
Fri, 14 Feb 2020 19:33:07 +0000 (20:33 +0100)
committerTBK <redacted>
Fri, 14 Feb 2020 19:33:07 +0000 (20:33 +0100)
app/Http/Controllers/BookshelfController.php

index 57e67dc00e618b53fec9b16eec134242422dd8af..c882ca7c32cf0521053d0afd84d48ab02b1ff7cf 100644 (file)
@@ -90,7 +90,7 @@ class BookshelfController extends Controller
 
         $bookIds = explode(',', $request->get('books', ''));
         $shelf = $this->bookshelfRepo->create($request->all(), $bookIds);
-        $this->bookshelfRepo->updateCoverImage($shelf);
+        $this->bookshelfRepo->updateCoverImage($shelf, $request->file('image', null));
 
         Activity::add($shelf, 'bookshelf_create');
         return redirect($shelf->getUrl());
Morty Proxy This is a proxified and sanitized view of the page, visit original site.