Project

General

Profile

Feature #6116 ยป issues_default_sort_by_root_id_and_id-1.3.1.patch

patch for 1.3.1 adding root_id desc to default sorting of issues - Tomasz Sawicki, 2011-05-17 18:11

View differences:

app/controllers/issues_controller.rb (kopia robocza)
63 63
  
64 64
  def index
65 65
    retrieve_query
66
    sort_init(@query.sort_criteria.empty? ? [['id', 'desc']] : @query.sort_criteria)
66
    sort_init(@query.sort_criteria.empty? ? [['root_id', 'desc'], ['id', 'desc']] : @query.sort_criteria)
67 67
    sort_update(@query.sortable_columns)
68 68
    
69 69
    if @query.valid?
    (1-1/1)