mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-07 23:03:00 +03:00
add priority on page and chapter create
This commit is contained in:
@@ -164,7 +164,7 @@ class PageRepo
|
||||
|
||||
$draft->draft = false;
|
||||
$draft->revision_count = 1;
|
||||
$draft->priority = $this->getNewPriority($draft);
|
||||
$draft->priority = $draft->priority ?: $this->getNewPriority($draft);
|
||||
$draft->save();
|
||||
|
||||
$this->revisionRepo->storeNewForPage($draft, trans('entities.pages_initial_revision'));
|
||||
|
Reference in New Issue
Block a user