Project

General

Profile

Patch #262 ยป version_selection.txt

Milton Taylor, 2008-02-03 11:02

 
1
Index: C:/dev/workspace/redmine/app/views/issues/_bulk_edit_form.rhtml
2
===================================================================
3
--- C:/dev/workspace/redmine/app/views/issues/_bulk_edit_form.rhtml	(revision 1108)
4
+++ C:/dev/workspace/redmine/app/views/issues/_bulk_edit_form.rhtml	(working copy)
5
@@ -17,7 +17,7 @@
6
                                  content_tag('option', l(:label_nobody), :value => 'none') +
7
                                  options_from_collection_for_select(@project.assignable_users, :id, :name)) %></label>
8
 <label><%= l(:field_fixed_version) %>: 
9
-<%= select_tag('fixed_version_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@project.versions, :id, :name)) %></label>
10
+<%= select_tag('fixed_version_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@project.versions.select{|v| !v.completed? }.sort, :id, :name)) %></label>
11
 </p>
12
 
13
 <p>
14
Index: C:/dev/workspace/redmine/app/views/issues/_form.rhtml
15
===================================================================
16
--- C:/dev/workspace/redmine/app/views/issues/_form.rhtml	(revision 1108)
17
+++ C:/dev/workspace/redmine/app/views/issues/_form.rhtml	(working copy)
18
@@ -30,7 +30,7 @@
19
                      {:controller => 'projects', :action => 'add_issue_category', :id => @project},
20
                      :class => 'small', :tabindex => 199) if authorize_for('projects', 'add_issue_category') %></p>
21
 <%= content_tag('p', f.select(:fixed_version_id, 
22
-                              (@project.versions.sort.collect {|v| [v.name, v.id]}),
23
+                              (@project.versions.select{|v| !v.completed? }.sort.collect {|v|  [v.name, v.id]}),
24
                               { :include_blank => true })) unless @project.versions.empty? %>
25
 </div>
26
 
27
Index: C:/dev/workspace/redmine/app/views/issues/_update.rhtml
28
===================================================================
29
--- C:/dev/workspace/redmine/app/views/issues/_update.rhtml	(revision 1108)
30
+++ C:/dev/workspace/redmine/app/views/issues/_update.rhtml	(working copy)
31
@@ -12,7 +12,7 @@
32
     </div>
33
     <div class="splitcontentright">
34
     <p><%= f.select :done_ratio, ((0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %></p>
35
-    <p><%= f.select :fixed_version_id, (@project.versions.sort.collect {|v| [v.name, v.id]}), { :include_blank => true } %></p>
36
+    <p><%= f.select :fixed_version_id, (@project.versions.select{|v| !v.completed? }.sort.collect {|v| [v.name, v.id]}), { :include_blank => true } %></p>
37
     </div>
38
 </fieldset>
39
 <% end%>
    (1-1/1)