From 24ec41f7d4893641b9aa27830298f5f55e22a201 2013-01-03 13:40:50 From: Jean-Philippe Lang Date: 2013-01-03 13:40:50 Subject: [PATCH] A column has been specified more than once in the order by list (#12713). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11106 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/controllers/wiki_controller.rb b/app/controllers/wiki_controller.rb index 6d3b446..c3d5f5a 100644 --- a/app/controllers/wiki_controller.rb +++ b/app/controllers/wiki_controller.rb @@ -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