Project

General

Profile

Feature #560 » 560.patch

Patch to only show incomplete versions in the target version list - Anonymous, 2008-03-31 23:43

View differences:

app/views/issues/_form.rhtml Thu Mar 27 09:07:40 2008 +1100 → app/views/issues/_form.rhtml Tue Apr 01 08:57:46 2008 +1100
30 30
                     {:controller => 'projects', :action => 'add_issue_category', :id => @project},
31 31
                     :class => 'small', :tabindex => 199) if authorize_for('projects', 'add_issue_category') %></p>
32 32
<%= content_tag('p', f.select(:fixed_version_id, 
33
                              (@project.versions.sort.collect {|v| [v.name, v.id]}),
33
                              (@project.versions.sort.select {|v| !v.completed?}.collect {|v| [v.name, v.id]}),
34 34
                              { :include_blank => true })) unless @project.versions.empty? %>
35 35
</div>
36 36

  
app/views/issues/_form_update.rhtml Thu Mar 27 09:07:40 2008 +1100 → app/views/issues/_form_update.rhtml Tue Apr 01 08:57:46 2008 +1100
5 5
<div class="splitcontentright">
6 6
<p><%= f.select :done_ratio, ((0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %></p>
7 7
<%= content_tag('p', f.select(:fixed_version_id, 
8
                          (@project.versions.sort.collect {|v| [v.name, v.id]}),
8
                          (@project.versions.sort.select {|v| !v.completed?}.collect {|v| [v.name, v.id]}),
9 9
                          { :include_blank => true })) unless @project.versions.empty? %>
10 10
</div>
    (1-1/1)