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:
parent
fa969504d4
commit
1c69c43293
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue