adds/removes numeric order when changing visibility status

This commit is contained in:
Andy Miller
2015-08-05 13:22:46 -06:00
parent 8655d13f6c
commit c59d5d4c9f
3 changed files with 23 additions and 2 deletions

View File

@@ -504,7 +504,7 @@ class Admin
// Found the type and header from the session.
$data = $this->session->{$page->route()};
$page->name($data['type'] . '.md');
$page->header(['title' => $data['title']]);
$page->header(['title' => $data['title'], 'visible' => $data['visible']]);
$page->frontmatter(Yaml::dump((array) $page->header()));
} else {
// Find out the type by looking at the parent.