aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/referentials
diff options
context:
space:
mode:
authorZog2018-03-29 14:38:45 +0200
committerZog2018-03-29 14:38:45 +0200
commitef01bea2bef74358e3df3e74cc613d664a9a554d (patch)
tree19b375858b37645754198c048841458621d23737 /app/views/referentials
parent1019debe93d776f0d38ae69099e6492a7dd4a87c (diff)
downloadchouette-core-ef01bea2bef74358e3df3e74cc613d664a9a554d.tar.bz2
Refs #4658; Remove `current_functional_scope`
Diffstat (limited to 'app/views/referentials')
-rw-r--r--app/views/referentials/_form.html.slim2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/referentials/_form.html.slim b/app/views/referentials/_form.html.slim
index 96d847ec1..c378f871e 100644
--- a/app/views/referentials/_form.html.slim
+++ b/app/views/referentials/_form.html.slim
@@ -49,7 +49,7 @@
.separator
.row
.col-lg-11
- = subform.input :lines, as: :select, collection: Chouette::Line.includes(:company).order(:name).where(objectid: current_functional_scope), selected: subform.object.line_ids, label_method: :display_name, input_html: { 'data-select2ed': 'true', 'data-select2ed-placeholder': t('simple_form.labels.referential.placeholders.select_lines'), 'multiple': 'multiple', style: 'width: 100%' }
+ = subform.input :lines, as: :select, collection: Chouette::Line.includes(:company).order(:name).for_organisation(current_organisation), selected: subform.object.line_ids, label_method: :display_name, input_html: { 'data-select2ed': 'true', 'data-select2ed-placeholder': t('simple_form.labels.referential.placeholders.select_lines'), 'multiple': 'multiple', style: 'width: 100%' }
.col-lg-1
a.clear-lines.btn.btn-default href='#'
.fa.fa-trash