]> BookStack Code Mirror - bookstack/blobdiff - app/Repos/EntityRepo.php
#47 - Fixes the issues with the test case.
[bookstack] / app / Repos / EntityRepo.php
index f86c7d0a56b4f2e7faa4cfd41cc3ef53ba0e911b..7bc5fc4fc159f2a2984e8b2fe62eda5593416b44 100644 (file)
@@ -730,6 +730,7 @@ class EntityRepo
         if ($chapter) $page->chapter_id = $chapter->id;
 
         $book->pages()->save($page);
+        $page = $this->page->find($page->id);
         $this->permissionService->buildJointPermissionsForEntity($page);
         return $page;
     }