Only show allowed statuses in context menu (#10181).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8825 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
5e0c1cc5ce
commit
07a93c2731
|
@ -39,7 +39,6 @@ class ContextMenusController < ApplicationController
|
|||
end
|
||||
|
||||
@priorities = IssuePriority.active.reverse
|
||||
@statuses = IssueStatus.find(:all, :order => 'position')
|
||||
@back = back_url
|
||||
|
||||
@options_by_custom_field = {}
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
<li class="folder">
|
||||
<a href="#" class="submenu" onclick="return false;"><%= l(:field_status) %></a>
|
||||
<ul>
|
||||
<% @statuses.each do |s| -%>
|
||||
<% @allowed_statuses.each do |s| -%>
|
||||
<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,
|
||||
:selected => (@issue && s == @issue.status), :disabled => !(@can[:update] && @allowed_statuses.include?(s)) %></li>
|
||||
:selected => (@issue && s == @issue.status), :disabled => !@can[:update] %></li>
|
||||
<% end -%>
|
||||
</ul>
|
||||
</li>
|
||||
|
|
Loading…
Reference in New Issue