From: Richard Fairhurst Date: Fri, 24 Apr 2009 14:46:52 +0000 (+0000) Subject: lots of relations changes for speed and version management X-Git-Tag: live~7520 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/3cc3ff7ad63b303275c0782ee8731e23dfa753d1?hp=6c66507427961a22a8f282b5b2f4ab7fda1dad6f lots of relations changes for speed and version management --- diff --git a/app/controllers/amf_controller.rb b/app/controllers/amf_controller.rb index d729fdd45..a5da00998 100644 --- a/app/controllers/amf_controller.rb +++ b/app/controllers/amf_controller.rb @@ -436,12 +436,12 @@ class AmfController < ApplicationController if searchterm.to_i>0 then rel = Relation.find(searchterm.to_i) if rel and rel.visible then - rels.push([rel.id, rel.tags, rel.members]) + rels.push([rel.id, rel.tags, rel.members, rel.version]) end else RelationTag.find(:all, :limit => 11, :conditions => ["match(v) against (?)", searchterm] ).each do |t| if t.relation.visible then - rels.push([t.relation.id, t.relation.tags, t.relation.members]) + rels.push([t.relation.id, t.relation.tags, t.relation.members, t.relation.version]) end end end diff --git a/public/potlatch/potlatch.swf b/public/potlatch/potlatch.swf index 20112747a..0e81838fb 100755 Binary files a/public/potlatch/potlatch.swf and b/public/potlatch/potlatch.swf differ