aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/views/referentials/_reflines.html.slim4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/referentials/_reflines.html.slim b/app/views/referentials/_reflines.html.slim
index 730a45e0a..c0f0e03b7 100644
--- a/app/views/referentials/_reflines.html.slim
+++ b/app/views/referentials/_reflines.html.slim
@@ -1,7 +1,7 @@
-- if @reflines.any?
+- if @reflines && @reflines.any?
p
strong Lignes :
-
+
= table_builder @reflines,
{ 'Oid' => Proc.new { |n| n.objectid.local_id }, @reflines.human_attribute_name(:id) => 'id',
@reflines.human_attribute_name(:number) => 'number', @reflines.human_attribute_name(:name) => 'name', @reflines.human_attribute_name(:network) => Proc.new { |n| n.try(:network).try(:name) }, @reflines.human_attribute_name(:company) => Proc.new { |n| n.try(:company).try(:name) } },