Merge pull request #2804 from betagouv/frederic/fix_2800-invalid_empty_cell_display

[Fix #2800] Handle empty cells
This commit is contained in:
gregoirenovel 2018-10-10 20:39:07 +02:00 committed by GitHub
commit 064b5c1d7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -106,7 +106,9 @@
- @procedure_presentation.displayed_field_values(dossier).each do |value|
%td
= link_to(value, gestionnaire_dossier_path(@procedure, dossier), class: 'cell-link')
/ FIXME: value should automatically fallback to `""` instead of nil
/ #get_value should call to_s on the champ
= link_to(value || "", gestionnaire_dossier_path(@procedure, dossier), class: 'cell-link')
%td.status-col
= link_to(gestionnaire_dossier_path(@procedure, dossier), class: 'cell-link') do