diff options
| author | Xinhui | 2017-07-21 14:13:17 +0200 | 
|---|---|---|
| committer | Xinhui | 2017-07-21 14:13:22 +0200 | 
| commit | 92d1abd1ef31a357260b5cb629dfed9559dd53fb (patch) | |
| tree | 0cf14396245da35a39ad69059fe8cfadddaf9c6d /app/controllers/referentials_controller.rb | |
| parent | 7b297ba1410e82ea3d38f2be3c2d34596e52306a (diff) | |
| download | chouette-core-92d1abd1ef31a357260b5cb629dfed9559dd53fb.tar.bz2 | |
Fix cloned ref should belong to current user organisation
Refs #4132
Diffstat (limited to 'app/controllers/referentials_controller.rb')
| -rw-r--r-- | app/controllers/referentials_controller.rb | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/app/controllers/referentials_controller.rb b/app/controllers/referentials_controller.rb index 838c46168..afd376092 100644 --- a/app/controllers/referentials_controller.rb +++ b/app/controllers/referentials_controller.rb @@ -9,7 +9,7 @@ class ReferentialsController < BreadcrumbController    def new      if params[:from]        source_referential = Referential.find(params[:from]) -      @referential = Referential.new_from(source_referential, organisation: current_organisation) +      @referential = Referential.new_from(source_referential)      end      new! do @@ -118,7 +118,7 @@ class ReferentialsController < BreadcrumbController    end    def create_resource(referential) -    referential.organisation = current_organisation unless referential.created_from +    referential.organisation = current_organisation      referential.ready = true      super    end | 
