]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Repos/PageRepo.php
Update Localization.php in Middleware with "no" tag for estimate.
[bookstack] / app / Entities / Repos / PageRepo.php
index fc585b4dff9921f89e890b54a88350690228464d..e5f13463c388f781dd215338afb4af37cefaa7c5 100644 (file)
@@ -278,7 +278,7 @@ class PageRepo
         $revision = $page->revisions()->where('id', '=', $revisionId)->first();
         $page->fill($revision->toArray());
         $content = new PageContent($page);
-        $content->setNewHTML($page->html);
+        $content->setNewHTML($revision->html);
         $page->updated_by = user()->id;
         $page->refreshSlug();
         $page->save();