diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-07-14 07:15:13 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-07-14 07:15:13 +0000 |
commit | d2f7e31951d0e150df9cfd6da7d91d855f734d5f (patch) | |
tree | 35dfd4e7ff86f66c9eacb5bec14c63e920913896 /app/models/journal.rb | |
parent | e58e676b7c15bb3f837f660f857d8e2a3e35f233 (diff) | |
download | redmine-d2f7e31951d0e150df9cfd6da7d91d855f734d5f.tar.gz redmine-d2f7e31951d0e150df9cfd6da7d91d855f734d5f.zip |
Use .distinct instead of .uniq.
git-svn-id: http://svn.redmine.org/redmine/trunk@15654 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/journal.rb')
-rw-r--r-- | app/models/journal.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/journal.rb b/app/models/journal.rb index d65034c56..3f1a34952 100644 --- a/app/models/journal.rb +++ b/app/models/journal.rb @@ -40,7 +40,7 @@ class Journal < ActiveRecord::Base :scope => preload({:issue => :project}, :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 <> '')").uniq + " (#{JournalDetail.table_name}.prop_key = 'status_id' OR #{Journal.table_name}.notes <> '')").distinct before_create :split_private_notes after_create :send_notification |