diff --git a/app/views/timelog/details.rhtml b/app/views/timelog/details.rhtml index 950b37dc13..20cf8cea40 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 6ff61ff751..52bd11f482 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' %>

<%= l(:label_details) %>: <%= select_tag 'columns', options_for_select([[l(:label_year), 'year'],