mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
Fixes methods comments.
git-svn-id: http://svn.redmine.org/redmine/trunk@14409 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
67ff5550a6
commit
5a3ee73a2e
@ -947,7 +947,7 @@ class Issue < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
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)
|
def self.load_visible_spent_hours(issues, user=User.current)
|
||||||
if issues.any?
|
if issues.any?
|
||||||
hours_by_issue_id = TimeEntry.visible(user).where(:issue_id => issues.map(&:id)).group(:issue_id).sum(:hours)
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Preloads visible total spent time for a collection of issues
|
||||||
def self.load_visible_total_spent_hours(issues, user=User.current)
|
def self.load_visible_total_spent_hours(issues, user=User.current)
|
||||||
if issues.any?
|
if issues.any?
|
||||||
hours_by_issue_id = TimeEntry.visible(user).joins(:issue).
|
hours_by_issue_id = TimeEntry.visible(user).joins(:issue).
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user