From: Jean-Philippe Lang Date: Mon, 12 Mar 2007 17:33:20 +0000 (+0000) Subject: fixed #9207 Can't Save Changes to Project X-Git-Tag: 0.5.0~108 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=071f8e18d02f789149071abb8e052bae7ad01003;p=redmine.git fixed #9207 Can't Save Changes to Project git-svn-id: http://redmine.rubyforge.org/svn/trunk@332 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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]