From 94da4a33f5d9353d4b8228163462d5711721285f Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Mon, 23 Oct 2023 17:31:04 +0000 Subject: Revert r22368. git-svn-id: https://svn.redmine.org/redmine/trunk@22369 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/wikis_controller.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'app/controllers') diff --git a/app/controllers/wikis_controller.rb b/app/controllers/wikis_controller.rb index 5b753b13b..4469e3627 100644 --- a/app/controllers/wikis_controller.rb +++ b/app/controllers/wikis_controller.rb @@ -24,9 +24,7 @@ class WikisController < ApplicationController # Delete a project's wiki def destroy if request.post? && params[:confirm] && @project.wiki - if @project.wiki.destroy - Wiki.create_default(@project) unless @wiki - end + @project.wiki.destroy redirect_to project_path(@project) end end -- cgit v1.2.3