From 21440259d6870b4a16793d1a7d672715c72c56b6 Mon Sep 17 00:00:00 2001 From: Florian Thoma Date: Mon, 16 Dec 2024 14:14:16 +1100 Subject: [PATCH] skip adding fluent actions menu if it already exists (backport of #fb2c518 to v7) --- src/Extension/Traits/FluentAdminTrait.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Extension/Traits/FluentAdminTrait.php b/src/Extension/Traits/FluentAdminTrait.php index 63da66a3..35fea09a 100644 --- a/src/Extension/Traits/FluentAdminTrait.php +++ b/src/Extension/Traits/FluentAdminTrait.php @@ -95,6 +95,11 @@ protected function updateFluentActions( return; } + // check if actions menu already exist + if ($actions->fieldByName('FluentMenu')) { + return; + } + // Build root tabset that makes up the menu $rootTabSet = TabSet::create('FluentMenu')->setTemplate( 'FluentAdminTabSet'