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
This commit is contained in:
Jean-Philippe Lang 2007-09-15 16:57:37 +00:00
parent fa969504d4
commit 1c69c43293
1 changed files with 1 additions and 1 deletions

View File

@ -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