Preserve gantt options when changing filters (#12122).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11571 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2013-03-09 10:44:39 +00:00
parent bb80baf9a5
commit 9c2561b59d
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@
<fieldset>
<legend><%= l(:label_related_issues) %></legend>
<label>
<%= check_box_tag "draw_rels", params["draw_rels"], true %>
<%= check_box_tag "draw_rels", params["draw_rels"], params[:set_filter].blank? || params[:draw_rels] %>
<% rels = [IssueRelation::TYPE_BLOCKS, IssueRelation::TYPE_PRECEDES] %>
<% rels.each do |rel| %>
<% color = Redmine::Helpers::Gantt::DRAW_TYPES[rel][:color] %>
@ -36,7 +36,7 @@
<fieldset>
<legend><%= l(:label_gantt_progress_line) %></legend>
<label>
<%= check_box_tag "draw_progress_line", params[:draw_progress_line], false %>
<%= check_box_tag "draw_progress_line", params[:draw_progress_line], params[:draw_progress_line] %>
<%= l(:label_display) %>
</label>
</fieldset>