]> source.dussan.org Git - redmine.git/commitdiff
Follows r2647.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 4 Apr 2009 10:01:31 +0000 (10:01 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 4 Apr 2009 10:01:31 +0000 (10:01 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2648 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/issues_controller.rb

index 4ab5bba1ab1b1d46deb156e1a6d97ed2a6f82dd3..1aceefbf6bbc5f3cf143c35c106e38d0b09f96e5 100644 (file)
@@ -80,7 +80,7 @@ class IssuesController < ApplicationController
   def changes
     retrieve_query
     sort_init 'id', 'desc'
-    sort_update({'id' => "#{Issue.table_name}.id"}.merge(@query.columns.inject({}) {|h, c| h[c.name.to_s] = c.sortable; h}))
+    sort_update({'id' => "#{Issue.table_name}.id"}.merge(@query.available_columns.inject({}) {|h, c| h[c.name.to_s] = c.sortable; h}))
     
     if @query.valid?
       @journals = Journal.find :all, :include => [ :details, :user, {:issue => [:project, :author, :tracker, :status]} ],