summaryrefslogtreecommitdiffstats
path: root/app/controllers/workflows_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-06-03 08:07:47 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-06-03 08:07:47 +0000
commit58dc4455cb4708be16eea61572b81db972d9279a (patch)
tree03d38eb51d4e49f53d84528976cf44cfd4ac9a38 /app/controllers/workflows_controller.rb
parent44c748f968f6a82e6dab444e6b9127f5a342f0e2 (diff)
downloadredmine-58dc4455cb4708be16eea61572b81db972d9279a.tar.gz
redmine-58dc4455cb4708be16eea61572b81db972d9279a.zip
AR uniq deprecated in Rails 5.
git-svn-id: http://svn.redmine.org/redmine/trunk@16598 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/workflows_controller.rb')
-rw-r--r--app/controllers/workflows_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/workflows_controller.rb b/app/controllers/workflows_controller.rb
index dd75860ff..d4cc5a8c3 100644
--- a/app/controllers/workflows_controller.rb
+++ b/app/controllers/workflows_controller.rb
@@ -141,7 +141,7 @@ class WorkflowsController < ApplicationController
role_ids = Role.all.select(&:consider_workflow?).map(&:id)
status_ids = WorkflowTransition.where(
:tracker_id => @trackers.map(&:id), :role_id => role_ids
- ).uniq.pluck(:old_status_id, :new_status_id).flatten.uniq
+ ).distinct.pluck(:old_status_id, :new_status_id).flatten.uniq
@statuses = IssueStatus.where(:id => status_ids).sorted.to_a.presence
end
@statuses ||= IssueStatus.sorted.to_a