]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-8056 Issue counter is wrong
authorStas Vilchik <vilchiks@gmail.com>
Wed, 14 Sep 2016 08:19:58 +0000 (10:19 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Wed, 14 Sep 2016 09:20:51 +0000 (11:20 +0200)
server/sonar-web/src/main/js/apps/issues/controller.js

index 26c87b8dcca2e220cca43648ca0457a0dbed3cd2..bd436af97715c18d4705af5660d29880787441c1 100644 (file)
@@ -87,12 +87,16 @@ export default Controller.extend({
       }), { merge: true });
       that._myIssuesFromResponse(r);
       that.enableFacets(that._enabledFacets());
-      that.options.app.state.set({
-        page: r.p,
-        pageSize: r.ps,
-        total: r.total,
-        maxResultsReached: r.p * r.ps >= r.total
-      });
+      if (firstPage) {
+        that.options.app.state.set({
+          page: r.p,
+          pageSize: r.ps,
+          total: r.total,
+          maxResultsReached: r.p * r.ps >= r.total
+        });
+      } else {
+        that.options.app.state.set({ page: r.p });
+      }
       if (firstPage && that.isIssuePermalink()) {
         return that.showComponentViewer(that.options.app.list.first());
       }