]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Tools/BookContents.php
feat(PageContent): set unique ids on nested headers
[bookstack] / app / Entities / Tools / BookContents.php
index 0b8e714fcf441048afee2a2c1f89dc85595dc4fa..8622d5e129486f78112e1b23867de77a4a4b7c0c 100644 (file)
@@ -45,7 +45,7 @@ class BookContents
      */
     public function getTree(bool $showDrafts = false, bool $renderPages = false): Collection
     {
-        $pages = $this->getPages($showDrafts);
+        $pages = $this->getPages($showDrafts, $renderPages);
         $chapters = Chapter::visible()->where('book_id', '=', $this->book->id)->get();
         $all = collect()->concat($pages)->concat($chapters);
         $chapterMap = $chapters->keyBy('id');