aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2014-07-31 10:28:09 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2014-07-31 10:28:09 +0200
commit2f10a0b97fb6b011bcacbf9c97c627a49e7dec48 (patch)
treed8419713380929a2b15c639bee974f71f9835788 /server/sonar-web
parenta162217822f8a361f4374b3563e1cbda50f6f2f6 (diff)
downloadsonarqube-2f10a0b97fb6b011bcacbf9c97c627a49e7dec48.tar.gz
sonarqube-2f10a0b97fb6b011bcacbf9c97c627a49e7dec48.zip
SONAR-5429 Ignore incorrect sort
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/app/helpers/measures_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/helpers/measures_helper.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/helpers/measures_helper.rb
index 23d1e6879d3..b316df15a2e 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/app/helpers/measures_helper.rb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/app/helpers/measures_helper.rb
@@ -28,7 +28,7 @@ module MeasuresHelper
if column.period
html += "<br><span class='note'>#{Api::Utils.period_abbreviation(column.period)}</small>"
end
- if filter.sort_key==column.key
+ if column.sort? && filter.sort_key==column.key
html << (filter.sort_asc? ? ' <i class="icon-sort-asc"></i>' : ' <i class="icon-sort-desc"></i>')
end
"<th class='#{column.align} #{column.title_css}'>#{html}</th>"