mirror of
https://github.com/processwire/processwire.git
synced 2025-08-17 20:11:46 +02:00
Fix issue processwire/processwire-issues#1394 via @Toutouwai
This commit is contained in:
@@ -100,7 +100,7 @@ class ProcessPageListActions extends Wire {
|
|||||||
'url' => "{$adminUrl}page/add/?parent_id={$page->id}"
|
'url' => "{$adminUrl}page/add/?parent_id={$page->id}"
|
||||||
);
|
);
|
||||||
|
|
||||||
$sortable = $page->sortfield == 'sort' && $page->parent->id && $page->parent->numChildren > 1 && $page->sortable();
|
$sortable = $page->parent->sortfield() == 'sort' && $page->parent->id && $page->parent->numChildren > 1 && $page->sortable();
|
||||||
|
|
||||||
if($page->id > 1 && ($sortable || $page->moveable())) $actions['move'] = array(
|
if($page->id > 1 && ($sortable || $page->moveable())) $actions['move'] = array(
|
||||||
'cn' => 'Move',
|
'cn' => 'Move',
|
||||||
|
Reference in New Issue
Block a user