From ef43a3bb62330a0c1ced04c10edd7e0da8355650 Mon Sep 17 00:00:00 2001 From: Kevin Ullyott Date: Wed, 5 Jun 2024 00:37:01 +0000 Subject: [PATCH] Fix Select to match relationship type Signed-off-by: Kevin Ullyott --- .../KnowledgeBaseItemResource/Pages/CreateKnowledgeBaseItem.php | 1 + .../Pages/EditKnowledgeBaseItemMetadata.php | 1 + 2 files changed, 2 insertions(+) diff --git a/app-modules/knowledge-base/src/Filament/Resources/KnowledgeBaseItemResource/Pages/CreateKnowledgeBaseItem.php b/app-modules/knowledge-base/src/Filament/Resources/KnowledgeBaseItemResource/Pages/CreateKnowledgeBaseItem.php index ecdbe97df..aa7c45947 100644 --- a/app-modules/knowledge-base/src/Filament/Resources/KnowledgeBaseItemResource/Pages/CreateKnowledgeBaseItem.php +++ b/app-modules/knowledge-base/src/Filament/Resources/KnowledgeBaseItemResource/Pages/CreateKnowledgeBaseItem.php @@ -109,6 +109,7 @@ public function form(Form $form): Form ->exists((new KnowledgeBaseCategory())->getTable(), (new KnowledgeBaseCategory())->getKeyName()), Select::make('division') ->label('Division') + ->multiple() ->relationship('division', 'name') ->searchable(['name', 'code']) ->preload() diff --git a/app-modules/knowledge-base/src/Filament/Resources/KnowledgeBaseItemResource/Pages/EditKnowledgeBaseItemMetadata.php b/app-modules/knowledge-base/src/Filament/Resources/KnowledgeBaseItemResource/Pages/EditKnowledgeBaseItemMetadata.php index 739638aed..b376ded02 100644 --- a/app-modules/knowledge-base/src/Filament/Resources/KnowledgeBaseItemResource/Pages/EditKnowledgeBaseItemMetadata.php +++ b/app-modules/knowledge-base/src/Filament/Resources/KnowledgeBaseItemResource/Pages/EditKnowledgeBaseItemMetadata.php @@ -99,6 +99,7 @@ public function form(): array ->exists((new KnowledgeBaseCategory())->getTable(), (new KnowledgeBaseCategory())->getKeyName()), Select::make('division') ->label('Division') + ->multiple() ->relationship('division', 'name') ->searchable(['name', 'code']) ->preload()