Bugfix so relations show up on Basic panel
authorRichard Fairhurst <richard@systemeD.net>
Wed, 3 Oct 2012 16:31:08 +0000 (17:31 +0100)
committerRichard Fairhurst <richard@systemeD.net>
Wed, 3 Oct 2012 16:31:08 +0000 (17:31 +0100)
net/systemeD/potlatch2/mapfeatures/editors/RelationMemberEditorFactory.as

index cc2b5ab..62eabb8 100644 (file)
@@ -41,7 +41,7 @@ package net.systemeD.potlatch2.mapfeatures.editors {
                                var match:Boolean=true;
                 for ( var k:String in _relationTagPatterns ) {
                     var relVal:String = relation.getTag(k);
-                    if (k.indexOf(relVal) < 0) { match=false; break; }
+                    if (_relationTagPatterns[k].indexOf(relVal) < 0) { match=false; break; }
                                        if ( _role && !relation.hasMemberInRole(entity,_role) ) { match=false; break; }
                 }
                                if (match) { return true; }