fix lower bound in number filter

This commit is contained in:
Ilion Beyst 2015-09-11 14:24:20 +02:00
parent 315687ffad
commit 2ea8124a01

View file

@ -86,7 +86,7 @@ class DataTable
}
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|