@@ -39,7 +39,6 class ContextMenusController < ApplicationController | |||||
39 | end |
|
39 | end | |
40 |
|
40 | |||
41 | @priorities = IssuePriority.active.reverse |
|
41 | @priorities = IssuePriority.active.reverse | |
42 | @statuses = IssueStatus.find(:all, :order => 'position') |
|
|||
43 | @back = back_url |
|
42 | @back = back_url | |
44 |
|
43 | |||
45 | @options_by_custom_field = {} |
|
44 | @options_by_custom_field = {} |
@@ -13,9 +13,9 | |||||
13 | <li class="folder"> |
|
13 | <li class="folder"> | |
14 | <a href="#" class="submenu" onclick="return false;"><%= l(:field_status) %></a> |
|
14 | <a href="#" class="submenu" onclick="return false;"><%= l(:field_status) %></a> | |
15 | <ul> |
|
15 | <ul> | |
16 | <% @statuses.each do |s| -%> |
|
16 | <% @allowed_statuses.each do |s| -%> | |
17 | <li><%= context_menu_link h(s.name), {:controller => 'issues', :action => 'bulk_update', :ids => @issues.collect(&:id), :issue => {:status_id => s}, :back_url => @back}, :method => :post, |
|
17 | <li><%= context_menu_link h(s.name), {:controller => 'issues', :action => 'bulk_update', :ids => @issues.collect(&:id), :issue => {:status_id => s}, :back_url => @back}, :method => :post, | |
18 |
:selected => (@issue && s == @issue.status), :disabled => ! |
|
18 | :selected => (@issue && s == @issue.status), :disabled => !@can[:update] %></li> | |
19 | <% end -%> |
|
19 | <% end -%> | |
20 | </ul> |
|
20 | </ul> | |
21 | </li> |
|
21 | </li> |
General Comments 0
You need to be logged in to leave comments.
Login now