lots of relations changes for speed and version management
authorRichard Fairhurst <richard@systemed.net>
Fri, 24 Apr 2009 14:46:52 +0000 (14:46 +0000)
committerRichard Fairhurst <richard@systemed.net>
Fri, 24 Apr 2009 14:46:52 +0000 (14:46 +0000)
app/controllers/amf_controller.rb
public/potlatch/potlatch.swf

index d729fdd456af3e38891bd8922560e830804c9462..a5da0099852657aa054fc26b7152a7d48a6aa495 100644 (file)
@@ -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
index 20112747a9dc2eef3c462aa8550e5b03871242d2..0e81838fb348cd4d62af17d1250d16a4274cee1e 100755 (executable)
Binary files a/public/potlatch/potlatch.swf and b/public/potlatch/potlatch.swf differ