]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/relation_controller.rb
Made relations ordered. Added some tests for this. Otherwise interface is unchanged.
[rails.git] / app / controllers / relation_controller.rb
index da5129467ff1e72caba2f35da5815804eb285008..cdd1d34d6fb459434bab7b381286634ebf1d1291 100644 (file)
@@ -180,7 +180,7 @@ class RelationController < ApplicationController
   end
 
   def relations_for_object(objtype)
-    relationids = RelationMember.find(:all, :conditions => ['member_type=? and member_id=?', objtype, params[:id]]).collect { |ws| ws.id }.uniq
+    relationids = RelationMember.find(:all, :conditions => ['member_type=? and member_id=?', objtype, params[:id]]).collect { |ws| ws.id[0] }.uniq
 
     doc = OSM::API.new.get_xml_doc