1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03: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
5 changed files with 41 additions and 3 deletions

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)
]);
}