summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-03-12 17:33:20 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-03-12 17:33:20 +0000
commit071f8e18d02f789149071abb8e052bae7ad01003 (patch)
tree75425a7e86ebde3413011368e53039c19d6e4ace /app
parent19d962c3aa803b4b3990c1e80ada13ab18afb074 (diff)
downloadredmine-071f8e18d02f789149071abb8e052bae7ad01003.tar.gz
redmine-071f8e18d02f789149071abb8e052bae7ad01003.zip
fixed #9207 Can't Save Changes to Project
git-svn-id: http://redmine.rubyforge.org/svn/trunk@332 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/controllers/projects_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index f1d5c655d..51ca6648f 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -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]