Skip to content

Commit

Permalink
Merge pull request #915 from xini/backport-double-action-insert
Browse files Browse the repository at this point in the history
skip adding fluent actions menu if it already exists
  • Loading branch information
tractorcow authored Jan 21, 2025
2 parents 43e2ab9 + 2144025 commit 8b67a7e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Extension/Traits/FluentAdminTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,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'
Expand Down

0 comments on commit 8b67a7e

Please sign in to comment.