Skip to content

Commit

Permalink
Fix `Can't add title to a fieldset and use fieldset prefixes at the s…
Browse files Browse the repository at this point in the history
…ame time`
  • Loading branch information
ryanmitchell committed Dec 5, 2023
1 parent af45cab commit 3308d75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fields/Blueprint.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ private function addEnsuredFieldToContents($contents, $ensured)
$field = $allFields->get($importKey);
$tab = $field['tab'];
$fields = collect($tabs[$tab]['sections'][$targetSectionIndex]['fields'])->keyBy(function ($field) {
return (isset($field['import'])) ? 'import:'.$field['import'] : $field['handle'];
return (isset($field['import'])) ? 'import:'.($field['prefix'] ?? null).$field['import'] : $field['handle'];
});
$importedConfig = $importedField['field']->config();
$config = array_merge($config, $importedConfig);
Expand Down

0 comments on commit 3308d75

Please sign in to comment.