From 6d35e603f0e22d03f6891d3d93ab66fbfbbba341 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Thu, 17 Jun 2021 15:59:37 -0400 Subject: [PATCH] Fix issue processwire/processwire-issues#1394 via @Toutouwai --- wire/modules/Process/ProcessPageList/ProcessPageListActions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wire/modules/Process/ProcessPageList/ProcessPageListActions.php b/wire/modules/Process/ProcessPageList/ProcessPageListActions.php index 49b80f1b..493ebff6 100644 --- a/wire/modules/Process/ProcessPageList/ProcessPageListActions.php +++ b/wire/modules/Process/ProcessPageList/ProcessPageListActions.php @@ -100,7 +100,7 @@ class ProcessPageListActions extends Wire { '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( 'cn' => 'Move',