##// END OF EJS Templates
Fixed: unable to save a new wiki page that just contains the default h1 title...
Jean-Philippe Lang -
r723:1c69c4329302
parent child
Show More
@@ -56,7 +56,7 class WikiController < ApplicationController
56 # don't keep previous comment
56 # don't keep previous comment
57 @content.comments = nil
57 @content.comments = nil
58 if request.post?
58 if request.post?
59 if @content.text == params[:content][:text]
59 if !@page.new_record? && @content.text == params[:content][:text]
60 # don't save if text wasn't changed
60 # don't save if text wasn't changed
61 redirect_to :action => 'index', :id => @project, :page => @page.title
61 redirect_to :action => 'index', :id => @project, :page => @page.title
62 return
62 return
General Comments 0
You need to be logged in to leave comments. Login now