From: Toshi MARUYAMA Date: Thu, 27 Sep 2012 16:05:33 +0000 (+0000) Subject: explicitly define route at scm diff view (#11966) X-Git-Tag: 2.2.0~335 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c3e055bd700bdcd09c700d20d1c309b55e46a0e8;p=redmine.git 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 --- 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) %>: