FIX DBForeignKey scaffolding missing parameter (#11295)

Co-authored-by: johannes.hammersen <Johannes.Hammersen@funkemedien.de>
This commit is contained in:
Johannes Hammersen 2024-07-03 04:23:25 +02:00 committed by GitHub
parent e677b12202
commit 1943f9d417
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;