diff options
| author | Robert | 2017-11-15 17:15:24 +0100 |
|---|---|---|
| committer | Robert | 2017-11-17 14:49:19 +0100 |
| commit | 2b925fe2bf8f33a0d10dfe1307b086d9e3f0add4 (patch) | |
| tree | 877a1b225c4387c4f51807d26599592e8f506b22 /app/controllers/api | |
| parent | 21ddaefb9fc092463261284b0b7b493709201a3b (diff) | |
| download | chouette-core-2b925fe2bf8f33a0d10dfe1307b086d9e3f0add4.tar.bz2 | |
Fixes: #4461@2h; Specing and Implementing
Diffstat (limited to 'app/controllers/api')
| -rw-r--r-- | app/controllers/api/v1/netex_imports_controller.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/app/controllers/api/v1/netex_imports_controller.rb b/app/controllers/api/v1/netex_imports_controller.rb index 0934ce915..8e8c48986 100644 --- a/app/controllers/api/v1/netex_imports_controller.rb +++ b/app/controllers/api/v1/netex_imports_controller.rb @@ -30,11 +30,7 @@ module Api def create_netex_import attributes = netex_import_params.merge creator: "Webservice" - if @new_referential.persisted? - attributes = attributes.merge referential_id: @new_referential.id - else - attributes = attributes.merge status: "aborted" - end + attributes = attributes.merge referential_id: @new_referential.id @netex_import = NetexImport.new attributes @netex_import.save! |
