summaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-18 13:17:39 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-18 13:17:39 +0000
commit3a21dc6912ab6f0426dc5a59c68c571447bf9bef (patch)
treebe55b87df9949bfa317b1b3a511119496fad764a /app/models
parent1d9e6ebc38fff469c71043cd8eb42dbfd54ddd7d (diff)
downloadredmine-3a21dc6912ab6f0426dc5a59c68c571447bf9bef.tar.gz
redmine-3a21dc6912ab6f0426dc5a59c68c571447bf9bef.zip
Fixed #joins_for_order_statement (#24865).
git-svn-id: http://svn.redmine.org/redmine/trunk@16223 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-rw-r--r--app/models/issue_query.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/models/issue_query.rb b/app/models/issue_query.rb
index 9613b2ae2..588a1931d 100644
--- a/app/models/issue_query.rb
+++ b/app/models/issue_query.rb
@@ -516,16 +516,16 @@ class IssueQuery < Query
if order_options.include?('users')
joins << "LEFT OUTER JOIN #{User.table_name} ON #{User.table_name}.id = #{queried_table_name}.assigned_to_id"
end
- if order_options.include?('fixed_version')
+ if order_options.include?('versions')
joins << "LEFT OUTER JOIN #{Version.table_name} ON #{Version.table_name}.id = #{queried_table_name}.fixed_version_id"
end
- if order_options.include?('category')
+ if order_options.include?('issue_categories')
joins << "LEFT OUTER JOIN #{IssueCategory.table_name} ON #{IssueCategory.table_name}.id = #{queried_table_name}.category_id"
end
- if order_options.include?('tracker')
+ if order_options.include?('trackers')
joins << "LEFT OUTER JOIN #{Tracker.table_name} ON #{Tracker.table_name}.id = #{queried_table_name}.tracker_id"
end
- if order_options.include?('enumeration')
+ if order_options.include?('enumerations')
joins << "LEFT OUTER JOIN #{IssuePriority.table_name} ON #{IssuePriority.table_name}.id = #{queried_table_name}.priority_id"
end
end