From: Stas Vilchik Date: Wed, 2 Jul 2014 10:24:29 +0000 (+0600) Subject: SONAR-5209 Fix clearing of issues X-Git-Tag: 4.4-RC1~13 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a5bd64d75bb53ed17c549380c849cf5fd1bfb5b4;p=sonarqube.git SONAR-5209 Fix clearing of issues --- diff --git a/sonar-server/src/main/js/issues/extra.js b/sonar-server/src/main/js/issues/extra.js index ee75da84575..bbcaea6de45 100644 --- a/sonar-server/src/main/js/issues/extra.js +++ b/sonar-server/src/main/js/issues/extra.js @@ -156,6 +156,7 @@ define( } }), showCallback = function () { + console.log(that.model.toJSON()); jQuery('.navigator-details').removeClass('navigator-fetching'); app.detailsRegion.show(componentViewer); componentViewer.settings.set('issues', false); @@ -165,6 +166,9 @@ define( }; jQuery('.navigator-details').empty().addClass('navigator-fetching'); + var issueKey = this.model.get('key'); + this.model.clear({ silent: true }); + this.model.set({ key: issueKey }, { silent: true }); jQuery.when(this.model.fetch()).done(showCallback); },