]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5134 Fix infinite recursion by protecting against render/onRender loop
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Mon, 9 Jun 2014 14:41:42 +0000 (16:41 +0200)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Mon, 9 Jun 2014 14:56:55 +0000 (16:56 +0200)
sonar-server/src/main/coffee/coding-rules/views/actions-view.coffee

index df837935e6e11482a335aaa3af05aeea6020a578..dba669468b670203711ef7a826f53065952f70fe 100644 (file)
@@ -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()