Merge pull request #1191 from ZmagoD/zd_SCI_2486

fixes project duplication [fixes SCI-2486]
This commit is contained in:
Luka Murn 2018-06-05 09:49:34 +02:00 committed by GitHub
commit 3823eb8c74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -359,7 +359,7 @@ class User < ApplicationRecord
{ created_at: :desc }
end
result.where(archived: false).order(sort)
result.where(archived: false).distinct.order(sort)
end
# Finds all activities of user that is assigned to project. If user