<% form_remote_tag( :url => {}, :html => {:method => :get}, :method => :get, :update => 'content' ) do %>\r
<%# TOOD: remove the project_id and issue_id hidden fields, that information is\r
already in the URI %>\r
-<%= hidden_field_tag 'project_id', params[:project_id] %>\r
+<%= hidden_field_tag('project_id', params[:project_id]) if @project %>\r
<%= hidden_field_tag 'issue_id', params[:issue_id] if @issue %>\r
<%= render :partial => 'date_range' %>\r
<% end %>\r
<%= 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'],