]> source.dussan.org Git - redmine.git/commitdiff
explicitly define route at scm diff view (#11966)
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 27 Sep 2012 16:05:33 +0000 (16:05 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 27 Sep 2012 16:05:33 +0000 (16:05 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10490 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/repositories/diff.html.erb

index 8f0f4ac8049425b3df70d6d39363c11ac1ace993..6a366b4e7b8704646fbfb39d8a66d58af9e3cdb4 100644 (file)
@@ -1,8 +1,9 @@
 <h2><%= l(:label_revision) %> <%= @diff_format_revisions %> <%=h @path %></h2>
 
 <!-- Choose view type -->
-<%= form_tag({:path => to_path_param(@path)}, :method => 'get') do %>
-  <%= hidden_field_tag('rev', params[:rev]) if params[:rev] %>
+<%= form_tag({:action => 'diff', :id => @project,
+              :repository_id => @repository.identifier_param,
+              :path => to_path_param(@path), :rev=> @rev}, :method => 'get') do %>
   <%= hidden_field_tag('rev_to', params[:rev_to]) if params[:rev_to] %>
   <p>
     <%= l(:label_view_diff) %>: