mirror of
https://github.com/processwire/processwire.git
synced 2025-08-23 14:56:51 +02:00
Fix issue processwire/processwire-issues#695 change order of listable() call in ProcessPageList::renderNavJSON so that one could make an viewable/editable page non-listable in the tree nav dropdown
This commit is contained in:
@@ -530,13 +530,13 @@ class ProcessPageList extends Process implements ConfigurableModule {
|
||||
$url = '';
|
||||
$editable = false;
|
||||
|
||||
if($page->editable()) {
|
||||
if(!$page->listable()) {
|
||||
continue;
|
||||
} else if($page->editable()) {
|
||||
$url = $page->editUrl();
|
||||
$editable = true;
|
||||
} else if($page->viewable()) {
|
||||
$url = $page->url();
|
||||
} else if(!$page->listable()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$numChildren = $id > 1 ? $page->numChildren : 0;
|
||||
|
Reference in New Issue
Block a user