mirror of
https://github.com/redmine/redmine.git
synced 2026-08-05 01:41:03 +02:00
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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user