Added test for relations_for_node where the relation had been deleted.
This commit is contained in:
parent
6339473cb7
commit
498d695064
3 changed files with 36 additions and 10 deletions
|
@ -185,7 +185,7 @@ class RelationController < ApplicationController
|
|||
doc = OSM::API.new.get_xml_doc
|
||||
|
||||
Relation.find(relationids).each do |relation|
|
||||
doc.root << relation.to_xml_node
|
||||
doc.root << relation.to_xml_node if relation.visible
|
||||
end
|
||||
|
||||
render :text => doc.to_s, :content_type => "text/xml"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue