fix nodes bug
authorRichard Fairhurst <richard@systemed.net>
Thu, 23 Apr 2009 08:32:26 +0000 (08:32 +0000)
committerRichard Fairhurst <richard@systemed.net>
Thu, 23 Apr 2009 08:32:26 +0000 (08:32 +0000)
app/controllers/amf_controller.rb
public/potlatch/potlatch.swf

index 7f1bae483d9e5a9400ed017ea05317c3a51c5c16..6f07fa2c70ec8c3d472c33a47e17028b7e446667 100644 (file)
@@ -903,7 +903,7 @@ class AmfController < ApplicationController
   def sql_get_nodes_in_way(wayid)
     points=[]
     sql=<<-EOF
-      SELECT latitude*0.0000001 AS lat,longitude*0.0000001 AS lon,current_nodes.id 
+      SELECT latitude*0.0000001 AS lat,longitude*0.0000001 AS lon,current_nodes.id,current_nodes.version 
       FROM current_way_nodes,current_nodes 
        WHERE current_way_nodes.id=#{wayid.to_i} 
                   AND current_way_nodes.node_id=current_nodes.id 
@@ -916,7 +916,7 @@ class AmfController < ApplicationController
         nodetags[n['k']]=n['v']
       end
       nodetags.delete('created_by')
-      points << [row['lon'].to_f,row['lat'].to_f,row['id'].to_i,nodetags]
+      points << [row['lon'].to_f,row['lat'].to_f,row['id'].to_i,nodetags,row['version'].to_i]
     end
     points
   end
index b5190343f3db17b9c4fe46d6df3db9dbba97ccd2..7befcbdbd3447aaeff524a49d41fd3986ecd79ff 100755 (executable)
Binary files a/public/potlatch/potlatch.swf and b/public/potlatch/potlatch.swf differ