0
0
Fork 0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-05-22 15:57:29 +00:00

Merge branch 'feature/#1598' of git://github.com/cw1998/BookStack into cw1998-feature/#1598

This commit is contained in:
Dan Brown 2020-04-09 17:18:37 +01:00
commit 898cedf536
No known key found for this signature in database
GPG key ID: 46D9F943C24A2EF9
5 changed files with 41 additions and 3 deletions
app/Http/Controllers

View file

@ -114,6 +114,7 @@ class BookController extends Controller
{
$book = $this->bookRepo->getBySlug($slug);
$bookChildren = (new BookContents($book))->getTree(true);
$bookParentShelves = $book->shelves()->visible();
Views::add($book);
if ($request->has('shelf')) {
@ -125,6 +126,7 @@ class BookController extends Controller
'book' => $book,
'current' => $book,
'bookChildren' => $bookChildren,
'bookParentShelves' => $bookParentShelves,
'activity' => Activity::entityActivity($book, 20, 1)
]);
}