diff options
| author | Robert | 2017-05-02 12:15:09 +0200 | 
|---|---|---|
| committer | Robert | 2017-05-02 16:40:10 +0200 | 
| commit | 9b95304792865eb05305d8fea01c634a5c5d1829 (patch) | |
| tree | 63b44ad698c360626980ee6101ace13e49b83308 /app/controllers/referentials_controller.rb | |
| parent | a647f932dc8206583f727a4af64a200b6ec6857b (diff) | |
| download | chouette-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.rb | 5 | 
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 | 
