Skip to content

Fix Filament Select validation error on grantToUser action#330

Merged
simonhamp merged 1 commit intomainfrom
fix-filament-select-options
Apr 1, 2026
Merged

Fix Filament Select validation error on grantToUser action#330
simonhamp merged 1 commit intomainfrom
fix-filament-select-options

Conversation

@simonhamp
Copy link
Copy Markdown
Member

@simonhamp simonhamp commented Apr 1, 2026

Summary

  • Added missing getOptionLabelUsing() to the user_id Select field in the PluginBundleResource "Grant to User" table action
  • Filament v5 requires getOptionLabelUsing() alongside getSearchResultsUsing() to validate and display selected options
  • Added test covering the grantToUser action form submission

Closes #54

Test plan

  • New test GrantBundleToUserActionTest verifies the action can be called with a user_id without validation errors
  • Manually test granting a bundle to a user from /admin/plugin-bundles

🤖 Generated with Claude Code

Add missing getOptionLabelUsing() to the user_id Select field in the
PluginBundleResource grantToUser action. Filament v5 requires this
method alongside getSearchResultsUsing() to validate selected options.

Closes #54

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@simonhamp simonhamp marked this pull request as ready for review April 1, 2026 17:42
@simonhamp simonhamp merged commit c7b0c31 into main Apr 1, 2026
2 checks passed
@simonhamp simonhamp deleted the fix-filament-select-options branch April 1, 2026 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant