seven1m/onebody

Reports are broken... apparently after rails version upgrade

fadiwissa opened this issue · 1 comments

I think the reports module is affected by the fact that ApplicationController::Parameters no longer inherits from hash_with_indifferent_access in Rails 5+.

I keep getting this error when I try to run the group_contact_details report:
NoMethodError at /reports/group_contact_details
undefined method `with_indifferent_access' for <ActionController::Parameters {"group_id"=>""} permitted: false>:ActionController::Parameters

https://blog.bigbinary.com/2016/07/25/parameters-no-longer-inherit-from-hash-with-indifferent-access-in-rails-5.html

Thanks Tim.
HTML version is working for me now again ;)
I can see that you have removed xlsx format, and it seems that csv is not working (I get a csv with the column headers only and no data).
HTML is enough for my needs, but just logging in case you want to look into it.