diff options
| author | Luc Donnet | 2018-03-01 17:03:35 +0100 |
|---|---|---|
| committer | Luc Donnet | 2018-03-01 17:03:35 +0100 |
| commit | 9ae8c7e2f7efd8441b2c403c35eca3cbccdfd6cc (patch) | |
| tree | 0453d002b87112260e87bf02ccd1491d28a4932c /app/helpers | |
| parent | 28b44152c66039a052db8766a61ddfc6566d214d (diff) | |
| download | chouette-core-9ae8c7e2f7efd8441b2c403c35eca3cbccdfd6cc.tar.bz2 | |
Fix bug when object not exist anymore and table_builder must display a link Refs #5877
Diffstat (limited to 'app/helpers')
| -rw-r--r-- | app/helpers/table_builder_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/table_builder_helper.rb b/app/helpers/table_builder_helper.rb index 2068dd23c..d16858678 100644 --- a/app/helpers/table_builder_helper.rb +++ b/app/helpers/table_builder_helper.rb @@ -224,7 +224,7 @@ module TableBuilderHelper if column.linkable? path = column.link_to(item) - link = link_to(value, path) + link = value.present? && path.present? ? link_to(value, path) : "" if overhead.empty? bcont << content_tag(:td, link, title: 'Voir') |
