]> source.dussan.org Git - redmine.git/commitdiff
A column has been specified more than once in the order by list (#12713).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 3 Jan 2013 13:40:50 +0000 (13:40 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 3 Jan 2013 13:40:50 +0000 (13:40 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11106 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/wiki_controller.rb

index 6d3b446368427bea108d6c85d0a1c630d0491f56..c3d5f5ac41969626898087e880287149cb6dd8ab 100644 (file)
@@ -351,6 +351,6 @@ private
   end
 
   def load_pages_for_index
-    @pages = @wiki.pages.with_updated_on.order("#{WikiPage.table_name}.title").includes(:wiki => :project).includes(:parent).all
+    @pages = @wiki.pages.with_updated_on.reorder("#{WikiPage.table_name}.title").includes(:wiki => :project).includes(:parent).all
   end
 end