aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/time_tables_controller.rb
diff options
context:
space:
mode:
authorMichel Etienne2014-10-03 14:37:12 +0200
committerMichel Etienne2014-10-03 14:37:12 +0200
commitbf37e97d8a86814b1bc2f844cbcff86ab0a43266 (patch)
treeb009a3a77f22acb10c466835e14f7021055c9064 /app/controllers/time_tables_controller.rb
parent6a11b1c4057f828bbb98b53dde27a346b794bd3f (diff)
downloadchouette-core-bf37e97d8a86814b1bc2f844cbcff86ab0a43266.tar.bz2
duplicate calendar will open new form and not edit form , Mantis 29110
Diffstat (limited to 'app/controllers/time_tables_controller.rb')
-rw-r--r--app/controllers/time_tables_controller.rb6
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