From 1943f9d4173df4cb39992b960b870d5e41780348 Mon Sep 17 00:00:00 2001 From: Johannes Hammersen Date: Wed, 3 Jul 2024 04:23:25 +0200 Subject: [PATCH] FIX DBForeignKey scaffolding missing parameter (#11295) Co-authored-by: johannes.hammersen --- 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 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;