fixed #9207 Can't Save Changes to Project

git-svn-id: http://redmine.rubyforge.org/svn/trunk@332 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2007-03-12 17:33:20 +00:00
parent 19d962c3aa
commit 071f8e18d0
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ class ProjectsController < ApplicationController
if params[:wiki_enabled] if params[:wiki_enabled]
case params[:wiki_enabled] case params[:wiki_enabled]
when "0" when "0"
@project.wiki.destroy @project.wiki.destroy if @project.wiki
when "1" when "1"
@project.wiki ||= Wiki.new @project.wiki ||= Wiki.new
@project.wiki.update_attributes params[:wiki] @project.wiki.update_attributes params[:wiki]