aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjpl2017-06-28 14:48:02 +0200
committerjpl2017-06-28 14:48:11 +0200
commitfc7ef3fe160703ba5c7d5a265d68d990b024b235 (patch)
treeeb5f8451a9403eec0c151d5947eeece7d1012b7c
parent87c3cb8bc4bb8127133f384609a727ad13281bfb (diff)
downloadchouette-core-fc7ef3fe160703ba5c7d5a265d68d990b024b235.tar.bz2
Refs #3900: fix route_id filter on ITL
-rw-r--r--app/views/routing_constraint_zones/_filters.html.slim2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/routing_constraint_zones/_filters.html.slim b/app/views/routing_constraint_zones/_filters.html.slim
index 18ef40d61..07d351b1f 100644
--- a/app/views/routing_constraint_zones/_filters.html.slim
+++ b/app/views/routing_constraint_zones/_filters.html.slim
@@ -9,7 +9,7 @@
.ffg-row
.form-group
= f.label 'Itinéraire associé', required: false, class: 'control-label'
- = f.input :route_id, as: :select, collection: @line.routing_constraint_zones.pluck(:route_id), label: false, label_method: lambda {|r| @line.routing_constraint_zones.find_by(route_id: r).route_name}, input_html: { 'data-select2ed': 'true', 'data-select2ed-placeholder': 'Indiquez un itinéraire...' }, wrapper_html: { class: 'select2ed'}
+ = f.input :route_id_eq, as: :select, collection: @line.routing_constraint_zones.pluck(:route_id).uniq, label: false, label_method: lambda { |r| @line.routing_constraint_zones.find_by(route_id: r).route_name }, input_html: { 'data-select2ed': 'true', 'data-select2ed-placeholder': 'Indiquez un itinéraire...' }, wrapper_html: { class: 'select2ed'}
.actions
= link_to 'Effacer', referential_line_routing_constraint_zones_path(@referential, @line), class: 'btn btn-link'