Fix redirect path after wiki menu item creation

pull/688/head
Till Breuer 11 years ago
parent 6d8eecb94e
commit ac92678f21
  1. 2
      app/controllers/wiki_menu_items_controller.rb

@ -78,7 +78,7 @@ class WikiMenuItemsController < ApplicationController
# we may have just destroyed a new record # we may have just destroyed a new record
# e.g. there was no menu_item before, and there is none now # e.g. there was no menu_item before, and there is none now
flash[:notice] = l(:notice_successful_update) if (!@wiki_menu_item.new_record? && changed) flash[:notice] = l(:notice_successful_update) if (!@wiki_menu_item.new_record? && changed)
redirect_back_or_default({ :action => 'edit', :id => @page_title }) redirect_back_or_default({ :action => 'edit', :id => @page })
else else
respond_to do |format| respond_to do |format|
format.html { render :action => 'edit', :id => @page } format.html { render :action => 'edit', :id => @page }

Loading…
Cancel
Save