summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/models/journal.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/journal.rb b/app/models/journal.rb
index e83905a3c..179e60c24 100644
--- a/app/models/journal.rb
+++ b/app/models/journal.rb
@@ -53,7 +53,7 @@ class Journal < ApplicationRecord
:author_key => :user_id,
:scope =>
proc do
- preload({:issue => :project}, :user).
+ preload({:issue => :project}, {:issue => :tracker}, :user).
joins("LEFT OUTER JOIN #{JournalDetail.table_name} ON #{JournalDetail.table_name}.journal_id = #{Journal.table_name}.id").
where("#{Journal.table_name}.journalized_type = 'Issue' AND" +
" (#{JournalDetail.table_name}.prop_key = 'status_id' OR #{Journal.table_name}.notes <> '')").distinct