0
0
Fork 0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-05-21 23:38:39 +00:00

Fixed shelf activity display & updated book sort operation

This commit is contained in:
Dan Brown 2019-05-05 15:54:22 +01:00
parent 5910e00fb8
commit ba09dad1fe
No known key found for this signature in database
GPG key ID: 46D9F943C24A2EF9
6 changed files with 15 additions and 16 deletions
app/Http/Controllers

View file

@ -415,6 +415,7 @@ class BookController extends Controller
{
// Update the cover image if in request
if ($request->has('image')) {
$this->imageRepo->destroyImage($book->cover);
$newImage = $request->file('image');
$image = $this->imageRepo->saveNew($newImage, 'cover_book', $book->id, 512, 512, true);
$book->image_id = $image->id;