]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5209 Fix clearing of issues
authorStas Vilchik <vilchiks@gmail.com>
Wed, 2 Jul 2014 10:24:29 +0000 (16:24 +0600)
committerStas Vilchik <vilchiks@gmail.com>
Wed, 2 Jul 2014 10:24:29 +0000 (16:24 +0600)
sonar-server/src/main/js/issues/extra.js

index ee75da8457518d56a88988605dc41177eff0de3b..bbcaea6de456d5dcdb22d381484d5972cbd5b695 100644 (file)
@@ -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);
         },