From 071f8e18d02f789149071abb8e052bae7ad01003 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 12 Mar 2007 17:33:20 +0000 Subject: [PATCH] fixed #9207 Can't Save Changes to Project git-svn-id: http://redmine.rubyforge.org/svn/trunk@332 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/projects_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] -- 2.39.5