kill stupid tab bug
[potlatch2.git] / net / systemeD / potlatch2 / RelationSelectPanel.mxml
index 0f7301f30accb338ed053d5b305ea18bb05d6add..6e95fceba1441f08aba08eeb37881209e144b529 100644 (file)
@@ -19,7 +19,7 @@
 
         public function init(e:Entity, t:Object):void {
           entity = e;
-                 tags = t;
+          tags = {}; for (var k:String in t) { tags[k]=t[k]; } // deep copy tags
           PopUpManager.addPopUp(this, Application(Application.application), true);
           PopUpManager.centerPopUp(this);
     
@@ -49,7 +49,6 @@
           var relation:Relation = conn.createRelation(tags, [new RelationMember(entity, '')],
               MainUndoStack.getGlobalStack().addAction)
           PopUpManager.removePopUp(this);
-          trace("edit relation "+id);
           var panel:RelationEditorPanel = RelationEditorPanel(
               PopUpManager.createPopUp(Application(Application.application), RelationEditorPanel, true));
           panel.setRelation(relation);