aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/referentials_controller.rb
diff options
context:
space:
mode:
authorLuc Donnet2016-11-14 21:15:31 +0100
committerLuc Donnet2016-11-14 21:15:31 +0100
commit9cfa2309d53fa45342776f7cd2972080b3b85582 (patch)
treeaa435ae46f61fd25eee29a9e8a6c9beaf620a1d2 /app/controllers/referentials_controller.rb
parent552611c5a96134eff8515bbfe32870e900225bfb (diff)
parent3960264693d8ea79907b7c5619af678c69aef234 (diff)
downloadchouette-core-9cfa2309d53fa45342776f7cd2972080b3b85582.tar.bz2
Merge branch 'master' of github.com:AF83/stif-boiv
Diffstat (limited to 'app/controllers/referentials_controller.rb')
-rw-r--r--app/controllers/referentials_controller.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/controllers/referentials_controller.rb b/app/controllers/referentials_controller.rb
index 3ae59f975..003c85d3a 100644
--- a/app/controllers/referentials_controller.rb
+++ b/app/controllers/referentials_controller.rb
@@ -57,11 +57,7 @@ class ReferentialsController < BreadcrumbController
end
def create_resource(referential)
- if referential.created_from
- referential.clone_association referential.created_from
- else
- referential.organisation = current_organisation
- end
+ referential.organisation = current_organisation unless referential.created_from
super
end