Skip to content

Commit

Permalink
Merge pull request #5802 from ChrisBr/bug/cant-convert-nil
Browse files Browse the repository at this point in the history
Fix can't convert nil in monitor
  • Loading branch information
ChrisBr committed Sep 12, 2018
2 parents ba3c6e9 + ec418d0 commit 52f4f55
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/api/app/controllers/webui/project_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -787,11 +787,7 @@ def monitor_set_filter(defaults)
@avail_status_values.each do |s|
id = s.delete(' ')
if params.key?(id)
next unless (begin
Integer(params[id])
rescue ArgumentError
1
end) > 0
next if params[id].to_s == '0'
else
next unless defaults
end
Expand Down

0 comments on commit 52f4f55

Please sign in to comment.