Patch #2959 ยป patch.txt
1 |
### Eclipse Workspace Patch 1.0 |
---|---|
2 |
#P Redmine |
3 |
Index: app/views/issues/context_menu.rhtml |
4 |
=================================================================== |
5 |
--- app/views/issues/context_menu.rhtml (revision 2548) |
6 |
+++ app/views/issues/context_menu.rhtml (working copy) |
7 |
@@ -25,11 +25,11 @@ |
8 |
<% end -%> |
9 |
</ul> |
10 |
</li> |
11 |
- <% unless @project.nil? || @project.versions.empty? -%> |
12 |
+ <% unless @project.nil? || @project.versions.select {|v| !v.completed? }.empty? -%> |
13 |
<li class="folder"> |
14 |
<a href="#" class="submenu"><%= l(:field_fixed_version) %></a> |
15 |
<ul> |
16 |
- <% @project.versions.sort.each do |v| -%> |
17 |
+ <% @project.versions.select {|v| !v.completed? }.sort.each do |v| -%> |
18 |
<li><%= context_menu_link v.name, {:controller => 'issues', :action => 'bulk_edit', :ids => @issues.collect(&:id), 'fixed_version_id' => v, :back_to => @back}, :method => :post, |
19 |
:selected => (@issue && v == @issue.fixed_version), :disabled => !@can[:update] %></li> |
20 |
<% end -%> |