aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/referentials_controller.rb
diff options
context:
space:
mode:
authorRobert2017-05-02 12:15:09 +0200
committerRobert2017-05-02 16:40:10 +0200
commit9b95304792865eb05305d8fea01c634a5c5d1829 (patch)
tree63b44ad698c360626980ee6101ace13e49b83308 /app/controllers/referentials_controller.rb
parenta647f932dc8206583f727a4af64a200b6ec6857b (diff)
downloadchouette-core-9b95304792865eb05305d8fea01c634a5c5d1829.tar.bz2
Refs #3053
passes current_organization down from the controller into Reference.new_from adds joint models *ReferenceMemeberships to excluded Apartment models
Diffstat (limited to 'app/controllers/referentials_controller.rb')
-rw-r--r--app/controllers/referentials_controller.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/controllers/referentials_controller.rb b/app/controllers/referentials_controller.rb
index f46cd188d..437444f29 100644
--- a/app/controllers/referentials_controller.rb
+++ b/app/controllers/referentials_controller.rb
@@ -8,7 +8,10 @@ class ReferentialsController < BreadcrumbController
respond_to :js, :only => :show
def new
- @referential = Referential.new_from(Referential.find(params[:from])) if params[:from]
+ if params[:from]
+ source_referential = Referential.find(params[:from])
+ @referential = Referential.new_from(source_referential, organisation: current_organisation)
+ end
new! do
@referential.data_format = current_organisation.data_format