summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2014-06-09 16:41:42 +0200
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2014-06-09 16:56:55 +0200
commitecf8123328306bdd3b9722e7dc71e0ef324654f1 (patch)
tree3169a58f5a47ae34dcd4994db3b3036387a40377
parent5aba56ac9e17d9fc9f34715db31dcab404261da5 (diff)
downloadsonarqube-ecf8123328306bdd3b9722e7dc71e0ef324654f1.tar.gz
sonarqube-ecf8123328306bdd3b9722e7dc71e0ef324654f1.zip
SONAR-5134 Fix infinite recursion by protecting against render/onRender loop
-rw-r--r--sonar-server/src/main/coffee/coding-rules/views/actions-view.coffee3
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-server/src/main/coffee/coding-rules/views/actions-view.coffee b/sonar-server/src/main/coffee/coding-rules/views/actions-view.coffee
index df837935e6e..dba669468b6 100644
--- a/sonar-server/src/main/coffee/coding-rules/views/actions-view.coffee
+++ b/sonar-server/src/main/coffee/coding-rules/views/actions-view.coffee
@@ -27,7 +27,8 @@ define [
onRender: ->
unless @collection.sorting.sortText
- @collection.sorting.sortText = @$('[data-sort=' + @collection.sorting.sort + ']:first').text()
+ while not @collection.sorting.sortText
+ @collection.sorting.sortText = @$('[data-sort=' + @collection.sorting.sort + ']:first').text()
@render()