From c3e055bd700bdcd09c700d20d1c309b55e46a0e8 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 27 Sep 2012 16:05:33 +0000 Subject: [PATCH] explicitly define route at scm diff view (#11966) git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10490 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/repositories/diff.html.erb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/repositories/diff.html.erb b/app/views/repositories/diff.html.erb index 8f0f4ac80..6a366b4e7 100644 --- a/app/views/repositories/diff.html.erb +++ b/app/views/repositories/diff.html.erb @@ -1,8 +1,9 @@

<%= l(:label_revision) %> <%= @diff_format_revisions %> <%=h @path %>

-<%= 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] %>

<%= l(:label_view_diff) %>: -- 2.39.5