mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-31 01:09:22 +02:00
avoid untagged line warning for lines in relations
This commit is contained in:
@@ -31,7 +31,8 @@ iD.validate = function(changes, graph) {
|
||||
});
|
||||
}
|
||||
|
||||
if (change.geometry(graph) === 'line' && _.isEmpty(change.tags)) {
|
||||
if (change.geometry(graph) === 'line' && _.isEmpty(change.tags) &&
|
||||
graph.parentRelations(change).length === 0) {
|
||||
warnings.push({ message: t('validations.untagged_line'), entity: change });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user