mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-18 14:45:12 +02:00
Don't use the issue loc as a differentiator for all issues
This commit is contained in:
@@ -29,19 +29,13 @@ export function validationIssue(attrs) {
|
||||
parts.push(this.subtype);
|
||||
}
|
||||
|
||||
// include entities this issue is for
|
||||
// include the entities this issue is for
|
||||
// (sort them so the id is deterministic)
|
||||
if (this.entityIds) {
|
||||
var entityKeys = this.entityIds.slice().sort();
|
||||
parts.push.apply(parts, entityKeys);
|
||||
}
|
||||
|
||||
// include loc since two separate issues can have an
|
||||
// idential type and entities, e.g. in crossing_ways
|
||||
if (this.loc) {
|
||||
parts.push.apply(parts, this.loc);
|
||||
}
|
||||
|
||||
return parts.join(':');
|
||||
}
|
||||
|
||||
|
||||
@@ -494,6 +494,8 @@ export function validationCrossingWays() {
|
||||
edges: crossing.edges,
|
||||
connectionTags: connectionTags
|
||||
},
|
||||
// differentiate based on the loc since two ways can cross multiple times
|
||||
hash: JSON.stringify(crossing.crossPoint),
|
||||
loc: crossing.crossPoint,
|
||||
fixes: fixes
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user