diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-09-15 16:57:37 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-09-15 16:57:37 +0000 |
commit | 1c69c43293023c14a58103ccd9260949f8de599b (patch) | |
tree | d9dfd54d931de76f41653d5dac554f0808825be1 | |
parent | fa969504d4529ca9b2ceadf3c56f09b171c9170e (diff) | |
download | redmine-1c69c43293023c14a58103ccd9260949f8de599b.tar.gz redmine-1c69c43293023c14a58103ccd9260949f8de599b.zip |
Fixed: unable to save a new wiki page that just contains the default h1 title
git-svn-id: http://redmine.rubyforge.org/svn/trunk@734 e93f8b46-1217-0410-a6f0-8f06a7374b81
-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 95f792c5e..5bade625e 100644 --- a/app/controllers/wiki_controller.rb +++ b/app/controllers/wiki_controller.rb @@ -56,7 +56,7 @@ class WikiController < ApplicationController # don't keep previous comment @content.comments = nil if request.post? - if @content.text == params[:content][:text] + if !@page.new_record? && @content.text == params[:content][:text] # don't save if text wasn't changed redirect_to :action => 'index', :id => @project, :page => @page.title return |