diff options
author | Heinrich Lee Yu <heinrich@gitlab.com> | 2018-12-17 18:27:10 +0800 |
---|---|---|
committer | Heinrich Lee Yu <heinrich@gitlab.com> | 2018-12-17 18:30:12 +0800 |
commit | 685c0f237d5b2a736e996e9f07bccffbaa205938 (patch) | |
tree | 4251d4194ccd4f072acff85720bbbcaee674ebe4 /app | |
parent | 8b4602041cf2c4a8738a4796d78720017249249f (diff) | |
download | gitlab-ce-685c0f237d5b2a736e996e9f07bccffbaa205938.tar.gz |
Fix calendar feed when sorted by priority
Diffstat (limited to 'app')
-rw-r--r-- | app/views/issues/_issues_calendar.ics.ruby | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/issues/_issues_calendar.ics.ruby b/app/views/issues/_issues_calendar.ics.ruby index 73ab8489e0c..94c3099ace2 100644 --- a/app/views/issues/_issues_calendar.ics.ruby +++ b/app/views/issues/_issues_calendar.ics.ruby @@ -3,7 +3,7 @@ cal.prodid = '-//GitLab//NONSGML GitLab//EN' cal.x_wr_calname = 'GitLab Issues' # rubocop: disable CodeReuse/ActiveRecord -@issues.includes(project: :namespace).each do |issue| +@issues.preload(project: :namespace).each do |issue| cal.event do |event| event.dtstart = Icalendar::Values::Date.new(issue.due_date) event.summary = "#{issue.title} (in #{issue.project.full_path})" |