diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-02-22 11:21:05 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-02-22 11:21:05 +0000 |
commit | 9b6f53219fc340222ffa8758b63d84d747bf8ebc (patch) | |
tree | de99a91478595ca649a6b9e8713721a46ecee112 /app/models/issue_query.rb | |
parent | 15c85ededd94002eefd2409eee349ad7f3b06b6e (diff) | |
download | redmine-9b6f53219fc340222ffa8758b63d84d747bf8ebc.tar.gz redmine-9b6f53219fc340222ffa8758b63d84d747bf8ebc.zip |
Preload issue authors when displayed on the issue list (#16091).
git-svn-id: http://svn.redmine.org/redmine/trunk@12911 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue_query.rb')
-rw-r--r-- | app/models/issue_query.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/issue_query.rb b/app/models/issue_query.rb index 9a6d278fe..bf90f56d1 100644 --- a/app/models/issue_query.rb +++ b/app/models/issue_query.rb @@ -334,6 +334,9 @@ class IssueQuery < Query offset(options[:offset]) scope = scope.preload(:custom_values) + if has_column?(:author) + scope = scope.preload(:author) + end issues = scope.all |