]> source.dussan.org Git - redmine.git/commitdiff
fixed #9207 Can't Save Changes to Project
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 12 Mar 2007 17:33:20 +0000 (17:33 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 12 Mar 2007 17:33:20 +0000 (17:33 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@332 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/projects_controller.rb

index f1d5c655d166b49205d40685bcbee56284c8d6cc..51ca6648fc03e52822f8c88f1f80aa5a2f9ddb17 100644 (file)
@@ -120,7 +120,7 @@ class ProjectsController < ApplicationController
       if params[:wiki_enabled]\r
         case params[:wiki_enabled]\r
         when "0"\r
-          @project.wiki.destroy\r
+          @project.wiki.destroy if @project.wiki\r
         when "1"\r
           @project.wiki ||= Wiki.new\r
           @project.wiki.update_attributes params[:wiki]\r