mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-19 03:25:02 +08:00
Merge branch 'new_bookshelf_cover_fix' of git://github.com/TBK/BookStack into TBK-new_bookshelf_cover_fix
This commit is contained in:
@ -90,7 +90,7 @@ class BookshelfController extends Controller
|
|||||||
|
|
||||||
$bookIds = explode(',', $request->get('books', ''));
|
$bookIds = explode(',', $request->get('books', ''));
|
||||||
$shelf = $this->bookshelfRepo->create($request->all(), $bookIds);
|
$shelf = $this->bookshelfRepo->create($request->all(), $bookIds);
|
||||||
$this->bookshelfRepo->updateCoverImage($shelf);
|
$this->bookshelfRepo->updateCoverImage($shelf, $request->file('image', null));
|
||||||
|
|
||||||
Activity::add($shelf, 'bookshelf_create');
|
Activity::add($shelf, 'bookshelf_create');
|
||||||
return redirect($shelf->getUrl());
|
return redirect($shelf->getUrl());
|
||||||
|
Reference in New Issue
Block a user