mirror of
https://github.com/redmine/redmine.git
synced 2025-11-14 09:16:02 +01:00
Use .distinct instead of .uniq.
git-svn-id: http://svn.redmine.org/redmine/trunk@15654 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -167,7 +167,7 @@ module Redmine
|
||||
scope.
|
||||
reorder(searchable_options[:date_column] => :desc, :id => :desc).
|
||||
limit(limit).
|
||||
uniq.
|
||||
distinct.
|
||||
pluck(searchable_options[:date_column], :id).
|
||||
# converts timestamps to integers for faster sort
|
||||
map {|timestamp, id| [timestamp.to_i, id]}
|
||||
|
||||
Reference in New Issue
Block a user