summaryrefslogtreecommitdiffstats
path: root/app/controllers/wiki_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-03-20 18:14:23 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-03-20 18:14:23 +0000
commitb1f5103c75069be42761d21ee7c51fca54d68e65 (patch)
tree75b7cb06fedcee736faf972041f340ec83a19faa /app/controllers/wiki_controller.rb
parentf19e8af33b1af64cbb6e595e54492b649ecc7ef2 (diff)
downloadredmine-b1f5103c75069be42761d21ee7c51fca54d68e65.tar.gz
redmine-b1f5103c75069be42761d21ee7c51fca54d68e65.zip
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
Diffstat (limited to 'app/controllers/wiki_controller.rb')
-rw-r--r--app/controllers/wiki_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/wiki_controller.rb b/app/controllers/wiki_controller.rb
index f84669020..552565668 100644
--- a/app/controllers/wiki_controller.rb
+++ b/app/controllers/wiki_controller.rb
@@ -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?