diff --git a/app/controllers/sections_controller.rb b/app/controllers/sections_controller.rb index 9670c84..6df6210 100644 --- a/app/controllers/sections_controller.rb +++ b/app/controllers/sections_controller.rb @@ -8,9 +8,9 @@ authorize @section @section.description = params["section-desc"] @section.modifiable = true - @phase = section.phase + @phase = @section.phase if @section.save - redirect_to admin_show_phase_template_path(id: @section.phase_id, + redirect_to admin_show_phase_path(id: @section.phase_id, :section_id => @section.id, edit: 'true'), notice: _('Information was successfully created.') else render action: "phases/admin_show"