Enhanced the Issue Bulk Copy feature:
* Add a Copy option to the Context menu for multiple issues. * Added assigned to, status, start and due date options to the move/copy form. * Allow Issue#move_to to change attributes on the moved/copied issue. #4117 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3122 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -40,4 +40,15 @@ class Workflow < ActiveRecord::Base
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
# Find potential statuses the user could be allowed to switch issues to
|
||||
def self.available_statuses(project, user=User.current)
|
||||
Workflow.find(:all,
|
||||
:include => :new_status,
|
||||
:conditions => {:role_id => user.roles_for_project(project).collect(&:id)}).
|
||||
collect(&:new_status).
|
||||
compact.
|
||||
uniq.
|
||||
sort
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user