Skip to content

Commit

Permalink
FIX DBForeignKey scaffolding missing parameter (#11295)
Browse files Browse the repository at this point in the history
Co-authored-by: johannes.hammersen <Johannes.Hammersen@funkemedien.de>
  • Loading branch information
johannesx75 and johannes.hammersen authored Jul 3, 2024
1 parent e677b12 commit 1943f9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ORM/FieldType/DBForeignKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function scaffoldFormField($title = null, $params = null)
$list = DataList::create($hasOneClass);
$threshold = static::config()->get('dropdown_field_threshold');
$overThreshold = $list->count() > $threshold;
$field = SearchableDropdownField::create($this->name, $title, $list, $labelField)
$field = SearchableDropdownField::create($this->name, $title, $list, null, $labelField)
->setIsLazyLoaded($overThreshold)
->setLazyLoadLimit($threshold);
return $field;
Expand Down

0 comments on commit 1943f9d

Please sign in to comment.