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);
|
$list = DataList::create($hasOneClass);
|
||||||
$threshold = static::config()->get('dropdown_field_threshold');
|
$threshold = static::config()->get('dropdown_field_threshold');
|
||||||
$overThreshold = $list->count() > $threshold;
|
$overThreshold = $list->count() > $threshold;
|
||||||
$field = SearchableDropdownField::create($this->name, $title, $list, $labelField)
|
$field = SearchableDropdownField::create($this->name, $title, $list, null, $labelField)
|
||||||
->setIsLazyLoaded($overThreshold)
|
->setIsLazyLoaded($overThreshold)
|
||||||
->setLazyLoadLimit($threshold);
|
->setLazyLoadLimit($threshold);
|
||||||
return $field;
|
return $field;
|
||||||
|
Loading…
Reference in New Issue
Block a user