aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/controllers/referentials_controller.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/referentials_controller.rb b/app/controllers/referentials_controller.rb
index 6ee744413..87c632bc7 100644
--- a/app/controllers/referentials_controller.rb
+++ b/app/controllers/referentials_controller.rb
@@ -13,5 +13,10 @@ class ReferentialsController < InheritedResources::Base
def collection
@referentials ||= current_organisation.referentials
end
+ def create_resource(referential)
+ referential.organisation = current_organisation
+ super
+ end
+
end