From 1c69c43293023c14a58103ccd9260949f8de599b Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 15 Sep 2007 16:57:37 +0000 Subject: [PATCH] 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 --- app/controllers/wiki_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5