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 f51da1b213a98a0fc6b9b784a967fa5d23280ee5..5ebe386a13e39019e979c07a9beac1992f75e74e 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 ec1bc3a30e63c636903deceffdf3a3ca2dca7bea..8d382ca07973cdee2b767ac7b8ad1032752743b7 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;