Skip to content

Commit

Permalink
fix lower bound in number filter
Browse files Browse the repository at this point in the history
  • Loading branch information
iasoon committed Sep 11, 2015
1 parent 315687f commit 2ea8124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/concerns/data_table.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def sanitize_params(params)
}
if type == 'number-range'
h[:lower], h[:upper] = value.split('~').map do |euros|
(euros.to_f * 100).to_i rescue nil
(Float(euros) * 100).to_i rescue nil
end
elsif type == 'date-range'
h[:lower], h[:upper] = value.split('~').map do |string|
Expand Down

0 comments on commit 2ea8124

Please sign in to comment.