From 3c97f8a430f77d2e651b8862954a89bc1333940f Mon Sep 17 00:00:00 2001 From: "johannes.hammersen" Date: Thu, 27 Jun 2024 14:47:00 +0200 Subject: [PATCH] FIX DBForeignKey scaffolding missing parameter --- src/ORM/FieldType/DBForeignKey.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ORM/FieldType/DBForeignKey.php b/src/ORM/FieldType/DBForeignKey.php index 8b2aaa70b32..6b5ef56f513 100644 --- a/src/ORM/FieldType/DBForeignKey.php +++ b/src/ORM/FieldType/DBForeignKey.php @@ -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;