Skip to content

Commit

Permalink
Merge common field defaults into Field:: preProcessedConfig
Browse files Browse the repository at this point in the history
Doing so will fix #10198.
  • Loading branch information
duncanmcclean committed May 28, 2024
1 parent 00669d6 commit 972567b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/Fields/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 972567b

Please sign in to comment.