From 8f08322f83259c8605540696e0446c89277f55ce 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 1ac12431..7221de38 100644 --- a/src/Extensions/WorkflowApplicable.php +++ b/src/Extensions/WorkflowApplicable.php @@ -265,7 +265,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); } } }