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:
parent
19d962c3aa
commit
071f8e18d0
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue