]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5971 The component viewer, in differential mode, might display some unexpected...
authorStas Vilchik <vilchiks@gmail.com>
Tue, 23 Dec 2014 08:26:35 +0000 (09:26 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Tue, 23 Dec 2014 08:27:21 +0000 (09:27 +0100)
server/sonar-web/src/main/coffee/component-viewer/main.coffee
server/sonar-web/src/main/coffee/component-viewer/mixins/main-issues.coffee

index ab9241fcbed9ce94f2be38a41033d8660913a439..f19d698d48defde1a3dc1e0fe48d71d872c30a27 100644 (file)
@@ -190,8 +190,7 @@ define [
           @periods.reset [{label: t('none')}]
           data.periods.forEach (p) =>
             d = moment p[2]
-            date = new Date d.get('year'), d.get('month'), d.get('date')
-            p = @periods.add key: p[0], label: p[1], sinceDate: date
+            p = @periods.add key: p[0], label: p[1], sinceDate: d.toDate()
 
 
     requestMeasures: (key, period = null) ->
index a0bf014815787596e30b6942d68e6ada1f3b57d0..d4976ffd1014e0e5541ee2738d3e4b83d8b3289c 100644 (file)
@@ -85,7 +85,7 @@ define [
         p = predicate
         predicate = (issue) =>
           creationDate = new Date moment(issue.creationDate).format()
-          (creationDate >= period.get('sinceDate')) && p issue
+          (creationDate > period.get('sinceDate')) && p issue
 
       if requestIssues && !@state.get 'hasIssues'
         @requestIssues(@key).done => @_filterByIssues(predicate)