]> 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:26:35 +0000 (09:26 +0100)
server/sonar-web/src/main/coffee/component-viewer/main.coffee
server/sonar-web/src/main/coffee/component-viewer/mixins/main-issues.coffee

index bcda3059a58fe748d4bfb09625cd5371e1e86a49..8a629fda52d31cd3c74a6d508fbded14e5e95f32 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 5c3d522595a38bef4ac8e3ea874f6927882adf5e..d6823b2300fd6ffc7bfae4e8eb5173df5287d0e5 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)