diff options
Diffstat (limited to 'app/models/issue_query.rb')
-rw-r--r-- | app/models/issue_query.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/models/issue_query.rb b/app/models/issue_query.rb index 3ca31db9a..5b818cc28 100644 --- a/app/models/issue_query.rb +++ b/app/models/issue_query.rb @@ -20,6 +20,7 @@ class IssueQuery < Query self.queried_class = Issue self.available_columns = [ + QueryColumn.new(:id, :sortable => "#{Issue.table_name}.id", :default_order => 'desc', :caption => '#', :frozen => true), QueryColumn.new(:project, :sortable => "#{Project.table_name}.name", :groupable => true), QueryColumn.new(:tracker, :sortable => "#{Tracker.table_name}.position", :groupable => true), QueryColumn.new(:parent, :sortable => ["#{Issue.table_name}.root_id", "#{Issue.table_name}.lft ASC"], :default_order => 'desc', :caption => :field_parent_issue), @@ -216,10 +217,6 @@ class IssueQuery < Query @available_columns end - def sortable_columns - {'id' => "#{Issue.table_name}.id"}.merge(super) - end - def default_columns_names @default_columns_names ||= begin default_columns = Setting.issue_list_default_columns.map(&:to_sym) |