fixed #9401 New Wiki, cannot create new page (good one)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@354 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
f19e8af33b
commit
b1f5103c75
|
@ -44,7 +44,7 @@ class WikiController < ApplicationController
|
|||
@page = @wiki.find_or_new_page(params[:page])
|
||||
@page.content = WikiContent.new(:page => @page) if @page.new_record?
|
||||
@content = @page.content
|
||||
@content.text = "h1. #{@page.pretty_title}" if @content.text.empty?
|
||||
@content.text = "h1. #{@page.pretty_title}" if @content.text.blank?
|
||||
# don't keep previous comment
|
||||
@content.comment = nil
|
||||
if request.post?
|
||||
|
|
Loading…
Reference in New Issue