aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/controllers/referential_lines_controller.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/controllers/referential_lines_controller.rb b/app/controllers/referential_lines_controller.rb
index 7112cf452..a566f440e 100644
--- a/app/controllers/referential_lines_controller.rb
+++ b/app/controllers/referential_lines_controller.rb
@@ -50,6 +50,12 @@ class ReferentialLinesController < ChouetteController
protected
+ def build_resource
+ super.tap do |resource|
+ resource.line_referential = referential.line_referential
+ end
+ end
+
def filtered_lines_maps
filtered_lines.collect do |line|
{ :id => line.id, :name => (line.published_name ? line.published_name : line.name) }