1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Fixed revision-based redirect on new pages

This commit is contained in:
Dan Brown
2016-07-26 18:16:40 +01:00
parent d05e85efa9
commit 42976ca48c
2 changed files with 14 additions and 1 deletions

View File

@ -157,6 +157,8 @@ class PageRepo extends EntityRepo
$draftPage->draft = false;
$draftPage->save();
$this->saveRevision($draftPage, 'Initial Publish');
return $draftPage;
}