Remove created_by tags when serialising for saving
authorAndy Allan <gravitystorm@gmail.com>
Fri, 15 Oct 2010 12:26:19 +0000 (12:26 +0000)
committerAndy Allan <gravitystorm@gmail.com>
Fri, 15 Oct 2010 12:26:19 +0000 (12:26 +0000)
TODO.txt
net/systemeD/halcyon/connection/XMLConnection.as

index f51da1b..5ebe386 100644 (file)
--- a/TODO.txt
+++ b/TODO.txt
@@ -47,11 +47,6 @@ Potlatch 2: main outstanding issues
 * Deleting a way doesn't update the junction highlighting on the remaining junctions
 * Deleting a way also deletes POIs without warning (ooh, look I found a modal dialog in p1. Do I win a prize? :-) )
 
-
-== Miscellaneous data model ==
-
-* Remove created_by=* tags from any data touched
-
 == Rendering (Halcyon) ==
 
 * halcyon_viewer needs updating for new tileurl stuff
index ec1bc3a..8d382ca 100644 (file)
@@ -313,6 +313,10 @@ package net.systemeD.halcyon.connection {
             xml.@id = entity.id;
             xml.@version = entity.version;
             for each( var tag:Tag in entity.getTagArray() ) {
+              if (tag.key == 'created_by') {
+                entity.setTag('created_by', null, MainUndoStack.getGlobalStack().addAction);
+                continue;
+              }
               var tagXML:XML = <tag/>
               tagXML.@k = tag.key;
               tagXML.@v = tag.value;