From 2c4647f8c6d23c999ae959a047104eef49d00993 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Tue, 9 Oct 2007 19:07:19 +0000 Subject: 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 --- app/models/issue.rb | 2 +- app/models/project.rb | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'app/models') 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) -- cgit v1.2.3