mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-16 05:49:16 +02:00
Include default field values when upgrading a preset with a specific replacement (close #7033)
This commit is contained in:
@@ -38,7 +38,7 @@ export function validationOutdatedTags(context) {
|
||||
// upgrade preset..
|
||||
if (preset.replacement) {
|
||||
var newPreset = context.presets().item(preset.replacement);
|
||||
graph = actionChangePreset(entity.id, preset, newPreset, true)(graph); // true = skip field defaults
|
||||
graph = actionChangePreset(entity.id, preset, newPreset)(graph);
|
||||
entity = graph.entity(entity.id);
|
||||
preset = newPreset;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user