summaryrefslogtreecommitdiffstats
path: root/app/helpers/queries_helper.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-12-24 10:03:13 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-12-24 10:03:13 +0000
commit5c97a83a705f9dd7b7e8dd4470a2bc12fa5b22c1 (patch)
treedf9ac134224e4c43cdec2bd33d8801885c5d242b /app/helpers/queries_helper.rb
parent7776b5b6659ee213c031fd1ed3f73d503af6541e (diff)
downloadredmine-5c97a83a705f9dd7b7e8dd4470a2bc12fa5b22c1.tar.gz
redmine-5c97a83a705f9dd7b7e8dd4470a2bc12fa5b22c1.zip
Validates sort_key and sort_order params (#2378).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2171 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/queries_helper.rb')
-rw-r--r--app/helpers/queries_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/queries_helper.rb b/app/helpers/queries_helper.rb
index cf9819fd5..63d6a5356 100644
--- a/app/helpers/queries_helper.rb
+++ b/app/helpers/queries_helper.rb
@@ -22,8 +22,8 @@ module QueriesHelper
end
def column_header(column)
- column.sortable ? sort_header_tag(column.sortable, :caption => column.caption,
- :default_order => column.default_order) :
+ column.sortable ? sort_header_tag(column.name.to_s, :caption => column.caption,
+ :default_order => column.default_order) :
content_tag('th', column.caption)
end