Don't suggest adding a relation to itself (fixes #1820)

This commit is contained in:
John Firebaugh
2013-09-30 15:14:20 -07:00
parent ecfe8ce943
commit 47516bd650
+1 -1
View File
@@ -46,7 +46,7 @@ iD.ui.RawMembershipEditor = function(context) {
graph = context.graph();
context.intersects(context.extent()).forEach(function(entity) {
if (entity.type !== 'relation')
if (entity.type !== 'relation' || entity.id === id)
return;
var presetName = context.presets().match(entity, graph).name(),