diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-07-08 13:51:18 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-07-08 13:51:18 +0000 |
commit | 5de545fd795a1e80a4e677ae2e4dc7175d38d81f (patch) | |
tree | 738cf812b38ecebf17bd96e681e289d19e14c28b /app/controllers/wiki_controller.rb | |
parent | 2bc719e2c8deccaedc523ffa6ae2849321fc5cc3 (diff) | |
download | redmine-5de545fd795a1e80a4e677ae2e4dc7175d38d81f.tar.gz redmine-5de545fd795a1e80a4e677ae2e4dc7175d38d81f.zip |
Set the parent page when creating a new wiki page from the "Add page" link (#26043).
git-svn-id: http://svn.redmine.org/redmine/trunk@16774 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/wiki_controller.rb')
-rw-r--r-- | app/controllers/wiki_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/wiki_controller.rb b/app/controllers/wiki_controller.rb index 5496fbbdd..8064cd64f 100644 --- a/app/controllers/wiki_controller.rb +++ b/app/controllers/wiki_controller.rb @@ -70,7 +70,7 @@ class WikiController < ApplicationController @page.title = '' unless editable? @page.validate if @page.errors[:title].blank? - path = project_wiki_page_path(@project, @page.title) + path = project_wiki_page_path(:project_id => @project, :id => @page.title, :parent => params[:parent]) respond_to do |format| format.html { redirect_to path } format.js { render :js => "window.location = #{path.to_json}" } |