]> git.openstreetmap.org Git - potlatch2.git/commitdiff
Fix bizarre E4X failure
authorAndy Allan <andy@gravitystorm.co.uk>
Thu, 30 Jun 2011 16:29:23 +0000 (17:29 +0100)
committerAndy Allan <andy@gravitystorm.co.uk>
Thu, 30 Jun 2011 16:29:23 +0000 (17:29 +0100)
net/systemeD/potlatch2/mapfeatures/Feature.as

index beb69ffaa88fc46e423109fa376a1cd93d4463d7..0cda0b16510246849e06c22d08ac3413cd433523 100644 (file)
@@ -67,8 +67,12 @@ package net.systemeD.potlatch2.mapfeatures {
 
             for each(var inputSetRef:XML in xml.inputSet) {
                 var setName:String = String(inputSetRef.@ref);
-                for each (inputXML in mapFeatures.definition.inputSet.(@id==setName)) {
-                    addEditors(inputXML);
+                // Go on then, someone tell me why this stopped working. Namespaces?:
+                //for each (inputXML in mapFeatures.definition.inputSet.(@id == setName)) {
+                for each (inputXML in mapFeatures.definition.inputSet) {
+                    if (inputXML.@id == setName) {
+                        addEditors(inputXML);
+                    }
                 }
             }