Fix bug.
This commit is contained in:
parent
4b911f3a28
commit
59241bab52
|
|
@ -129,7 +129,7 @@ class CancerpredictsController < ApplicationController
|
|||
result['table'] = @form_to_show.result_table_translations[locale]
|
||||
year = params['data']['year'] rescue nil
|
||||
if year.nil?
|
||||
year = @years.first.to_f
|
||||
year = @years.last.to_f
|
||||
else
|
||||
year = year.to_f
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue