mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX DBForeignKey scaffolding missing parameter (#11295)
Co-authored-by: johannes.hammersen <Johannes.Hammersen@funkemedien.de>
This commit is contained in:
parent
e677b12202
commit
1943f9d417
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user