summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2015-08-31 03:38:44 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2015-08-31 03:38:44 +0000
commit7cc8aa756df5c7df750fee2bd14224e8fa1367cf (patch)
tree7b9ca99a49390ddb84ea37f3b9e2b20a5103ad7a
parent8e84df24ea251bcef74a8ce1f22a84f97db66f68 (diff)
downloadredmine-7cc8aa756df5c7df750fee2bd14224e8fa1367cf.tar.gz
redmine-7cc8aa756df5c7df750fee2bd14224e8fa1367cf.zip
Merged r14409 from trunk to 3.1-stable (#11253, #20456)
Fixes methods comments. git-svn-id: http://svn.redmine.org/redmine/branches/3.1-stable@14536 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/models/issue.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index 72df50cd6..e0f93faef 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -947,7 +947,7 @@ class Issue < ActiveRecord::Base
end
end
- # Preloads visible total spent time for a collection of issues
+ # Preloads visible spent time for a collection of issues
def self.load_visible_spent_hours(issues, user=User.current)
if issues.any?
hours_by_issue_id = TimeEntry.visible(user).where(:issue_id => issues.map(&:id)).group(:issue_id).sum(:hours)
@@ -957,6 +957,7 @@ class Issue < ActiveRecord::Base
end
end
+ # Preloads visible total spent time for a collection of issues
def self.load_visible_total_spent_hours(issues, user=User.current)
if issues.any?
hours_by_issue_id = TimeEntry.visible(user).joins(:issue).