Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion Blueprints/src/BlueprintForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,17 @@ protected function deepMerge(array $a, array $b)
case 'replace':
if (!$property) {
$bref = ['unset@' => true];
} else {
}
// replace-name@ was used to override the name of a field previously imported
elseif ($property == 'name' && isset($head['name'])) {
// in the main array, copy field reference under the new name ($header['name'])
$a[$head['name']] = &$bref;
// unset the previous index
unset($a[$bref['name']]);
// (internal "name" is also replaced)
$bref['name'] = $head['name'];
}
else {
unset($bref[$property]);
}
continue 2;
Expand Down