diff options
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/time_tables_controller.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/time_tables_controller.rb b/app/controllers/time_tables_controller.rb index 54b0a3bac..be1738060 100644 --- a/app/controllers/time_tables_controller.rb +++ b/app/controllers/time_tables_controller.rb @@ -46,10 +46,10 @@ class TimeTablesController < ChouetteController def duplicate @time_table = Chouette::TimeTable.find params[:id] + # prepare breadcrumb before prepare data for new timetable + build_breadcrumb :edit @time_table = @time_table.duplicate - @time_table.save - flash[:notice] = I18n.translate("time_tables.duplicate_success") - redirect_to edit_referential_time_table_path(@referential, @time_table) + render :new end def tags |
