Feature #6116 ยป issues_default_sort_by_root_id_and_id-1.3.1.patch
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? |