diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2012-03-15 00:26:46 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2012-03-15 11:41:02 +0100 |
commit | fae66e786aa5ce4fecc1ea89f7da0bb872094295 (patch) | |
tree | f0e361627ca66893e026028bbda44c05daefe8d1 /sonar-server/src/main/webapp/WEB-INF | |
parent | c73e1a8a2c3951dbe56bd84c2cdd26767883be9d (diff) | |
download | sonarqube-fae66e786aa5ce4fecc1ea89f7da0bb872094295.tar.gz sonarqube-fae66e786aa5ce4fecc1ea89f7da0bb872094295.zip |
SONAR-2043 fix error when opening file without sources and with the URL parameter period
Diffstat (limited to 'sonar-server/src/main/webapp/WEB-INF')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb index 56a6adbb316..9c5b1cfcfc2 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb @@ -428,7 +428,7 @@ class ResourceController < ApplicationController if @period && @snapshot.period_datetime(@period) @filtered=true to=Java::JavaUtil::Date.new(@snapshot.period_datetime(@period).to_f * 1000) - if to + if to && @lines @lines.each do |line| line.flag_as_hidden() if !line.after(to) end |