Rails4: replace deprecated find_all_by_* at Tracker model
git-svn-id: http://svn.redmine.org/redmine/trunk@12548 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
92a948855e
commit
a6c18dce13
|
@ -63,8 +63,7 @@ class Tracker < ActiveRecord::Base
|
||||||
connection.select_rows("SELECT DISTINCT old_status_id, new_status_id FROM #{WorkflowTransition.table_name} WHERE tracker_id = #{id} AND type = 'WorkflowTransition'").
|
connection.select_rows("SELECT DISTINCT old_status_id, new_status_id FROM #{WorkflowTransition.table_name} WHERE tracker_id = #{id} AND type = 'WorkflowTransition'").
|
||||||
flatten.
|
flatten.
|
||||||
uniq
|
uniq
|
||||||
|
@issue_statuses = IssueStatus.where(:id => ids).all.sort
|
||||||
@issue_statuses = IssueStatus.find_all_by_id(ids).sort
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def disabled_core_fields
|
def disabled_core_fields
|
||||||
|
|
Loading…
Reference in New Issue