diff options
author | Go MAEDA <maeda@farend.jp> | 2018-10-03 07:16:47 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2018-10-03 07:16:47 +0000 |
commit | 3952c4d2642e275c1b1b04135596265b04548a13 (patch) | |
tree | bcac05dffca72e5db784d91eb55fed9b3edf65be /app/models/issue.rb | |
parent | 82abfa8ac576c9f8c85d9617d66b7d203b6b6b44 (diff) | |
download | redmine-3952c4d2642e275c1b1b04135596265b04548a13.tar.gz redmine-3952c4d2642e275c1b1b04135596265b04548a13.zip |
Extend Issue Summary to include subprojects (#2529).
Patch by Mizuki ISHIKAWA.
git-svn-id: http://svn.redmine.org/redmine/trunk@17563 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r-- | app/models/issue.rb | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb index b9d8355ec..aa2c08b33 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -1464,28 +1464,28 @@ class Issue < ActiveRecord::Base end end - def self.by_tracker(project) - count_and_group_by(:project => project, :association => :tracker) + def self.by_tracker(project, with_subprojects=false) + count_and_group_by(:project => project, :association => :tracker, :with_subprojects => with_subprojects) end - def self.by_version(project) - count_and_group_by(:project => project, :association => :fixed_version) + def self.by_version(project, with_subprojects=false) + count_and_group_by(:project => project, :association => :fixed_version, :with_subprojects => with_subprojects) end - def self.by_priority(project) - count_and_group_by(:project => project, :association => :priority) + def self.by_priority(project, with_subprojects=false) + count_and_group_by(:project => project, :association => :priority, :with_subprojects => with_subprojects) end - def self.by_category(project) - count_and_group_by(:project => project, :association => :category) + def self.by_category(project, with_subprojects=false) + count_and_group_by(:project => project, :association => :category, :with_subprojects => with_subprojects) end - def self.by_assigned_to(project) - count_and_group_by(:project => project, :association => :assigned_to) + def self.by_assigned_to(project, with_subprojects=false) + count_and_group_by(:project => project, :association => :assigned_to, :with_subprojects => with_subprojects) end - def self.by_author(project) - count_and_group_by(:project => project, :association => :author) + def self.by_author(project, with_subprojects=false) + count_and_group_by(:project => project, :association => :author, :with_subprojects => with_subprojects) end def self.by_subproject(project) |