From 65a6e3985e5023ff68b24aaf590abc5545c423e6 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 28 Sep 2012 06:37:48 +0000 Subject: [PATCH] Merged r10490 from trunk to 2.1-stable (#11982, #11966) explicitly define route at scm diff view. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/2.1-stable@10509 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 ecd19ccf8..6520a0fb5 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] %>

-- 2.39.5