]> BookStack Code Mirror - bookstack/blobdiff - app/Repos/CommentRepo.php
Adds overflow:auto to popup content to allow it to scroll in lower res.
[bookstack] / app / Repos / CommentRepo.php
index c3d7468cfb811dbee33cc057d097de471b8bb6ed..d8c57bdb32a5b10793b1c7d8bbaab09dbe1a7b47 100644 (file)
@@ -80,7 +80,7 @@ class CommentRepo {
      */
     protected function getNextLocalId(Entity $entity)
     {
-        $comments = $entity->comments()->orderBy('local_id', 'desc')->first();
+        $comments = $entity->comments(false)->orderBy('local_id', 'desc')->first();
         if ($comments === null) return 1;
         return $comments->local_id + 1;
     }