diff --git a/src/ORM/FieldType/DBForeignKey.php b/src/ORM/FieldType/DBForeignKey.php index 8b2aaa70b..6b5ef56f5 100644 --- a/src/ORM/FieldType/DBForeignKey.php +++ b/src/ORM/FieldType/DBForeignKey.php @@ -79,7 +79,7 @@ class DBForeignKey extends DBInt $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;