From: Richard Fairhurst Date: Thu, 23 Apr 2009 08:32:26 +0000 (+0000) Subject: fix nodes bug X-Git-Tag: live~7536 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/c65a3d76aeba12e6808d107e53cb1284ae3e9b99 fix nodes bug --- diff --git a/app/controllers/amf_controller.rb b/app/controllers/amf_controller.rb index 7f1bae483..6f07fa2c7 100644 --- a/app/controllers/amf_controller.rb +++ b/app/controllers/amf_controller.rb @@ -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 diff --git a/public/potlatch/potlatch.swf b/public/potlatch/potlatch.swf index b5190343f..7befcbdbd 100755 Binary files a/public/potlatch/potlatch.swf and b/public/potlatch/potlatch.swf differ