From 972567b21657cc62f2a5ebc9f258a464746426e7 Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Tue, 28 May 2024 15:10:46 +0100 Subject: [PATCH] Merge common field defaults into `Field:: preProcessedConfig` Doing so will fix #10198. --- src/Fields/Field.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/Fields/Field.php b/src/Fields/Field.php index a2f9445006..469312afdf 100644 --- a/src/Fields/Field.php +++ b/src/Fields/Field.php @@ -408,9 +408,14 @@ private function preProcessedConfig() $fields = $fieldtype->configFields()->addValues($this->config); - return array_merge($this->config, $fields->preProcess()->values()->all(), [ - 'component' => $fieldtype->component(), - ]); + return array_merge( + self::commonFieldOptions()->all()->map->get('default')->all(), + $this->config, + $fields->preProcess()->values()->all(), + [ + 'component' => $fieldtype->component(), + ] + ); } public function meta()