]> source.dussan.org Git - sonarqube.git/commitdiff
Fix quality flaw
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Mon, 27 Apr 2015 07:57:27 +0000 (09:57 +0200)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Mon, 27 Apr 2015 07:57:31 +0000 (09:57 +0200)
server/sonar-web/src/main/js/application.js

index 4de2fefb40b426b98e69e536812180183593b45f..0e33e7b2d71db5732a3e9a043af35c9578afffec 100644 (file)
@@ -122,7 +122,7 @@ function dashboardParameters (urlHasSomething) {
   var matchPeriod = queryString.match(/period=\d+/);
   if (matchPeriod) {
     // If we have a match for period, check that it is not project-specific
-    var period = parseInt(/period=(\d+)/.exec(queryString)[1]);
+    var period = parseInt(/period=(\d+)/.exec(queryString)[1], 10);
     if (period <= 3) {
       parameters.push(matchPeriod[0]);
     }