summaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-10-09 19:07:19 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-10-09 19:07:19 +0000
commit2c4647f8c6d23c999ae959a047104eef49d00993 (patch)
treefa1241406a68d951ded62d04269d85dfb6883a2c /app/models
parentdf631e8c06d755fd673e4bbf072a7e15766d1e0c (diff)
downloadredmine-2c4647f8c6d23c999ae959a047104eef49d00993.tar.gz
redmine-2c4647f8c6d23c999ae959a047104eef49d00993.zip
Added 'Bulk edit' functionality.
This can be done by clicking on the edit link (little pen icon) at the upper-left corner of the issue list. Most properties can be set (priority, assignee, category, fixed version, start and due dates, done ratio) and a note can be entered. Only issues of the current project can be selected for bulk edit (subproject issues can't). git-svn-id: http://redmine.rubyforge.org/svn/trunk@817 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-rw-r--r--app/models/issue.rb2
-rw-r--r--app/models/project.rb5
2 files changed, 6 insertions, 1 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index 52e21b416..fc7f6e1b8 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -143,7 +143,7 @@ class Issue < ActiveRecord::Base
# Users the issue can be assigned to
def assignable_users
- project.members.select {|m| m.role.assignable?}.collect {|m| m.user}
+ project.assignable_users
end
def spent_hours
diff --git a/app/models/project.rb b/app/models/project.rb
index b17f7ba74..3e6593f58 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -113,6 +113,11 @@ class Project < ActiveRecord::Base
children.select {|child| child.active?}
end
+ # Users issues can be assigned to
+ def assignable_users
+ members.select {|m| m.role.assignable?}.collect {|m| m.user}
+ end
+
# Returns an array of all custom fields enabled for project issues
# (explictly associated custom fields and custom fields enabled for all projects)
def custom_fields_for_issues(tracker)