From 2bfc788e13eb2543b071a6d2b132a8c38fd2c82a Mon Sep 17 00:00:00 2001 From: Lance Pioch Date: Sun, 8 Dec 2024 16:24:00 -0500 Subject: [PATCH] Allow searching for port when associating allocations (#801) --- .../RelationManagers/AllocationsRelationManager.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Filament/Admin/Resources/ServerResource/RelationManagers/AllocationsRelationManager.php b/app/Filament/Admin/Resources/ServerResource/RelationManagers/AllocationsRelationManager.php index 76429391f..f0fca624a 100644 --- a/app/Filament/Admin/Resources/ServerResource/RelationManagers/AllocationsRelationManager.php +++ b/app/Filament/Admin/Resources/ServerResource/RelationManagers/AllocationsRelationManager.php @@ -152,6 +152,7 @@ class AllocationsRelationManager extends RelationManager ->associateAnother(false) ->preloadRecordSelect() ->recordSelectOptionsQuery(fn ($query) => $query->whereBelongsTo($this->getOwnerRecord()->node)->whereNull('server_id')) + ->recordSelectSearchColumns(['ip', 'port']) ->label('Add Allocation'), ]) ->bulkActions([