1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-09 10:22:51 +03:00

Fixed issues preventing breadcrumb navigation menus from opening

- Added tests to cover endpoint

Fixes #1884
This commit is contained in:
Dan Brown
2020-02-15 19:09:33 +00:00
parent 5978d9a0d3
commit 6caedc7a37
3 changed files with 80 additions and 8 deletions

View File

@@ -115,7 +115,7 @@ class Book extends Entity implements HasCoverImage
{
$pages = $this->directPages()->visible()->get();
$chapters = $this->chapters()->visible()->get();
return $pages->contact($chapters)->sortBy('priority')->sortByDesc('draft');
return $pages->concat($chapters)->sortBy('priority')->sortByDesc('draft');
}
/**