diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-09-14 11:35:47 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-09-14 11:35:47 +0000 |
commit | 8929bfca6312254b9c0fe8b2be8eeabf02b18b85 (patch) | |
tree | 942ed1a910c479782f17ce3747052e152bfd93fb /app/models/wiki.rb | |
parent | 21c97c6a1376a38a3951c57069317c17c81029f8 (diff) | |
download | redmine-8929bfca6312254b9c0fe8b2be8eeabf02b18b85.tar.gz redmine-8929bfca6312254b9c0fe8b2be8eeabf02b18b85.zip |
Fixed: can't preview/save the very first wiki page.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@726 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/wiki.rb')
-rw-r--r-- | app/models/wiki.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/wiki.rb b/app/models/wiki.rb index b6cd661ff..7213efde8 100644 --- a/app/models/wiki.rb +++ b/app/models/wiki.rb @@ -26,6 +26,7 @@ class Wiki < ActiveRecord::Base # find the page with the given title # if page doesn't exist, return a new page def find_or_new_page(title) + title = start_page if title.blank? find_page(title) || WikiPage.new(:wiki => self, :title => Wiki.titleize(title)) end |