]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Entity.php
Checked over recycle bin parent/child flows
[bookstack] / app / Entities / Entity.php
index 34cdb4b8c49e7722cf7f540c276f16f794889b9e..99922bcebe50047c18563da197091d3b9bca1215 100644 (file)
@@ -298,7 +298,7 @@ class Entity extends Ownable
             return $this->chapter_id ? $this->chapter()->withTrashed()->first() : $this->book()->withTrashed()->first();
         }
         if ($this->isA('chapter')) {
-            return $this->book->withTrashed()->first();
+            return $this->book()->withTrashed()->first();
         }
         return null;
     }