From 213256bc1bdcf491ceb11f292666e95f54d347c2 Mon Sep 17 00:00:00 2001 From: Mohamed Alsharaf Date: Thu, 25 Jan 2024 16:32:49 +1300 Subject: [PATCH] FIX Argument order of insertBefore method --- src/Extensions/WorkflowApplicable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Extensions/WorkflowApplicable.php b/src/Extensions/WorkflowApplicable.php index 0b6469ce..56f27974 100644 --- a/src/Extensions/WorkflowApplicable.php +++ b/src/Extensions/WorkflowApplicable.php @@ -271,7 +271,7 @@ public function updateCMSActions(FieldList $actions) } // Only display menu if actions pushed to it if ($tab->Fields()->exists()) { - $menu->insertBefore($tab, 'MoreOptions'); + $menu->insertBefore('MoreOptions', $tab); } } }