Skip to content

Commit

Permalink
Fix Select to match relationship type
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Ullyott <kevin.ullyott@canyongbs.com>
  • Loading branch information
Orrison committed Jun 5, 2024
1 parent f383c99 commit ef43a3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ef43a3b

Please sign in to comment.