fix lower bound in number filter
This commit is contained in:
parent
315687ffad
commit
2ea8124a01
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ class DataTable
|
||||||
}
|
}
|
||||||
if type == 'number-range'
|
if type == 'number-range'
|
||||||
h[:lower], h[:upper] = value.split('~').map do |euros|
|
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
|
end
|
||||||
elsif type == 'date-range'
|
elsif type == 'date-range'
|
||||||
h[:lower], h[:upper] = value.split('~').map do |string|
|
h[:lower], h[:upper] = value.split('~').map do |string|
|
||||||
|
|
Loading…
Reference in a new issue