Skip to content
Snippets Groups Projects
Commit 1c69c432 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang
Browse files

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
parent fa969504
Branches
Tags
No related merge requests found
......@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment