From: Thomas Wood Date: Mon, 27 Apr 2009 21:26:23 +0000 (+0000) Subject: Quick fix to reference relation rather than relation_member when linking to the relat... X-Git-Tag: live~7515 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/38c8e3e37e4118b7f219969694041a3b28bc5996 Quick fix to reference relation rather than relation_member when linking to the relation, not sure when the bug was introduced. Tests still need to be written for the browse controller. Closes #1764 --- diff --git a/app/views/browse/_containing_relation.rhtml b/app/views/browse/_containing_relation.rhtml index b33dea590..013a7b6d7 100644 --- a/app/views/browse/_containing_relation.rhtml +++ b/app/views/browse/_containing_relation.rhtml @@ -1,6 +1,6 @@ - <%= link_to "Relation " + containing_relation.id.to_s, :action => "relation", :id => containing_relation.id.to_s %> + <%= link_to "Relation " + containing_relation.relation.id.to_s, :action => "relation", :id => containing_relation.relation.id.to_s %> <% unless containing_relation.member_role.blank? %> (as <%= h(containing_relation.member_role) %>) <% end %>