From 7f6067bc8c3e8acd37120f55ebd1ed003f955a94 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 0722ebd4..65142a95 100644 --- a/src/Extensions/WorkflowApplicable.php +++ b/src/Extensions/WorkflowApplicable.php @@ -270,7 +270,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); } } }