From: Jean-Baptiste Lievremont Date: Mon, 9 Jun 2014 14:41:42 +0000 (+0200) Subject: SONAR-5134 Fix infinite recursion by protecting against render/onRender loop X-Git-Tag: 4.4-RC1~543 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ecf8123328306bdd3b9722e7dc71e0ef324654f1;p=sonarqube.git SONAR-5134 Fix infinite recursion by protecting against render/onRender loop --- 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()