##// END OF EJS Templates
Fixed: Sorting a query on a value that isn't in the displayed columns fails (#3078)....
Jean-Philippe Lang -
r2558:b7127e3c1475
parent child
Show More
@@ -46,7 +46,7 class IssuesController < ApplicationController
46 def index
46 def index
47 retrieve_query
47 retrieve_query
48 sort_init(@query.sort_criteria.empty? ? [['id', 'desc']] : @query.sort_criteria)
48 sort_init(@query.sort_criteria.empty? ? [['id', 'desc']] : @query.sort_criteria)
49 sort_update({'id' => "#{Issue.table_name}.id"}.merge(@query.columns.inject({}) {|h, c| h[c.name.to_s] = c.sortable; h}))
49 sort_update({'id' => "#{Issue.table_name}.id"}.merge(@query.available_columns.inject({}) {|h, c| h[c.name.to_s] = c.sortable; h}))
50
50
51 if @query.valid?
51 if @query.valid?
52 limit = per_page_option
52 limit = per_page_option
General Comments 0
You need to be logged in to leave comments. Login now