diff options
| author | Alban Peignier | 2018-01-02 17:33:19 +0100 |
|---|---|---|
| committer | Alban Peignier | 2018-01-02 17:33:35 +0100 |
| commit | 048927f6ebc442ce3f2165b043801faf0ac95b14 (patch) | |
| tree | e9962068d38ef073834e7ba3ba1368c68ec52a60 /app | |
| parent | 95a9f7f71f11975f745a3623842e7aea7e50398d (diff) | |
| download | chouette-core-048927f6ebc442ce3f2165b043801faf0ac95b14.tar.bz2 | |
Fixes redirect on Referential creation (without cloning). Refs #5452. Refs #5297
Diffstat (limited to 'app')
| -rw-r--r-- | app/controllers/referentials_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/referentials_controller.rb b/app/controllers/referentials_controller.rb index f63abf685..6f398b7f5 100644 --- a/app/controllers/referentials_controller.rb +++ b/app/controllers/referentials_controller.rb @@ -17,8 +17,8 @@ class ReferentialsController < ChouetteController success.html do if @referential.created_from_id.present? flash[:notice] = t('notice.referentials.duplicate') - redirect_to workbench_path(@referential.workbench) end + redirect_to workbench_path(@referential.workbench) end failure.html do Rails.logger.info "Can't create Referential : #{@referential.errors.inspect}" |
