You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried adding some additional javascript as both a string and file path, and it wasn't showing up at the footer of the HTML as expected. Looking at the ReportBuilder.additional_js= def, it looks like the @options key may be incorrect. Shouldn't @options[:additional_js=] be @options[:additional_js]? Making that change locally resulted in the additional javascript being included in the report.
Edit to add:
Workaround is to just access the options directly before building the report. Change "ReportBuilder.additional_js" to "ReportBuilder.options[:additional_js]"
I tried adding some additional javascript as both a string and file path, and it wasn't showing up at the footer of the HTML as expected. Looking at the ReportBuilder.additional_js= def, it looks like the @options key may be incorrect. Shouldn't @options[:additional_js=] be @options[:additional_js]? Making that change locally resulted in the additional javascript being included in the report.
Edit to add:
Workaround is to just access the options directly before building the report. Change "ReportBuilder.additional_js" to "ReportBuilder.options[:additional_js]"
ReportBuilder/lib/report_builder.rb
Line 366 in ff96c17
The text was updated successfully, but these errors were encountered: