Skip to content

Commit

Permalink
Merge pull request #740 from canyongbs/hotfix/team-user-search-fix
Browse files Browse the repository at this point in the history
[Hotfix]: Adjust how users are searched and selected in Team User manager
  • Loading branch information
Orrison authored May 16, 2024
2 parents 5412311 + 6fc8ae5 commit 3cabab8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class UsersRelationManager extends RelationManager
{
protected static string $relationship = 'users';

protected static ?string $recordTitleAttribute = 'email';
protected static ?string $recordTitleAttribute = 'name';

public function form(Form $form): Form
{
Expand All @@ -74,6 +74,7 @@ public function table(Table $table): Table
->headerActions([
AttachAction::make()
->label('Add user to this team')
->recordSelectSearchColumns(['name', 'email'])
//TODO: remove this if we support multiple teams
->form(fn (AttachAction $action): array => [
$action->getRecordSelect()
Expand Down

0 comments on commit 3cabab8

Please sign in to comment.