aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorThomas Haddad2016-11-17 11:06:08 +0100
committerThomas Haddad2016-11-17 11:06:08 +0100
commit5d76918fbac09f4b681ab0ba10e39d1864ad054c (patch)
tree34c5b440b48ff1b116346e07d3caec5ab08375db /app
parent07abd404cf06481fdb62e9586e9f77e7818eaa07 (diff)
downloadchouette-core-5d76918fbac09f4b681ab0ba10e39d1864ad054c.tar.bz2
Fix template typo
Signed-off-by: Thomas Shawarma Haddad <thomas.haddad@af83.com>
Diffstat (limited to 'app')
-rw-r--r--app/views/shared/_lines_search_form.html.slim2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/_lines_search_form.html.slim b/app/views/shared/_lines_search_form.html.slim
index 685325bdc..ba25370a8 100644
--- a/app/views/shared/_lines_search_form.html.slim
+++ b/app/views/shared/_lines_search_form.html.slim
@@ -16,6 +16,6 @@
.panel-body
.row
- %w(networks companies group_of_lines).each do |filter|
- - if referential&.send(filter).any?
+ - if referential.send(filter).any?
.col-lg-4.col-md-4.col-sm-4.col-xs-4
= f.select(:"#{filter.singularize unless filter == 'group_of_lines'}_id_eq", referential.send(filter).collect { |f| [f.name, f.id] }.unshift([t("lines.index.no_#{filter}"), -1]), { include_blank: '' }, { class: 'form-control', style: 'width: 100%', 'data-select2ed': 'true', 'data-select2ed-placeholder': t("lines.index.all_#{filter}") })