Commit 071f8e18 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

fixed #9207 Can't Save Changes to Project

git-svn-id: http://redmine.rubyforge.org/svn/trunk@332 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 19d962c3
......@@ -120,7 +120,7 @@ class ProjectsController < ApplicationController
if params[:wiki_enabled]
case params[:wiki_enabled]
when "0"
@project.wiki.destroy
@project.wiki.destroy if @project.wiki
when "1"
@project.wiki ||= Wiki.new
@project.wiki.update_attributes params[:wiki]
......
Markdown is supported
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