fromthepage
fromthepage copied to clipboard
#2768 added line numbers in spreadsheet export
Closes #2768
I've reproduced the test failure locally; here's what we see at field_based_spec:133
:
. print page.text NoMethodError at /export/table_csv
undefined method `input_type' for nil:NilClass
To access an interactive console with this error, point your browser to: /__better_errors app/controllers/concerns/export_service.rb, line 676
671 end
672
673
674 def cell_data(array, data_cells, transcription_field_flag, count, position, spreadsheet_count)
675 if transcription_field_flag >
676 result = array.select { |element| element.transcription_field.input_type == 'spreadsheet' }
677 end
678 array.each do |cell|
679 index = index_for_cell(cell)
680 target = transcription_field_flag ? index : index *2
681 if cell.transcription_field.input_type == "spreadsheet" && spreadsheet_count == 1
App backtrace
- app/controllers/concerns/export_service.rb:676:in `block in cell_data'