diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-03-13 18:06:47 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-03-13 18:06:47 +0000 |
commit | 1e7962bfe9ed3b43629f17b5e950ee6a93c16df3 (patch) | |
tree | 31b2f889e58d487b1793c22f3e25fb9e041693ea | |
parent | 0100011e5cdc4532b925c7b09e0b4a61532cd809 (diff) | |
download | redmine-1e7962bfe9ed3b43629f17b5e950ee6a93c16df3.tar.gz redmine-1e7962bfe9ed3b43629f17b5e950ee6a93c16df3.zip |
Fixes broken CSV link on cross-project timelog report (#2941).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2582 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/views/timelog/details.rhtml | 2 | ||||
-rw-r--r-- | app/views/timelog/report.rhtml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/timelog/details.rhtml b/app/views/timelog/details.rhtml index 950b37dc1..20cf8cea4 100644 --- a/app/views/timelog/details.rhtml +++ b/app/views/timelog/details.rhtml @@ -9,7 +9,7 @@ <% form_remote_tag( :url => {}, :html => {:method => :get}, :method => :get, :update => 'content' ) do %>
<%# TOOD: remove the project_id and issue_id hidden fields, that information is
already in the URI %>
-<%= hidden_field_tag 'project_id', params[:project_id] %>
+<%= hidden_field_tag('project_id', params[:project_id]) if @project %>
<%= hidden_field_tag 'issue_id', params[:issue_id] if @issue %>
<%= render :partial => 'date_range' %>
<% end %>
diff --git a/app/views/timelog/report.rhtml b/app/views/timelog/report.rhtml index 6ff61ff75..52bd11f48 100644 --- a/app/views/timelog/report.rhtml +++ b/app/views/timelog/report.rhtml @@ -11,7 +11,7 @@ <%= hidden_field_tag 'criterias[]', criteria, :id => nil %> <% end %> <%# TODO: get rid of the project_id field, that should already be in the URL %> - <%= hidden_field_tag 'project_id', params[:project_id] %> + <%= hidden_field_tag('project_id', params[:project_id]) if @project %> <%= render :partial => 'date_range' %> <p><%= l(:label_details) %>: <%= select_tag 'columns', options_for_select([[l(:label_year), 'year'], |