summaryrefslogtreecommitdiffstats
path: root/app/models/enabled_module.rb
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2023-10-23 17:33:40 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2023-10-23 17:33:40 +0000
commitf1437b7ec59ba9126d93b239d29c85820e7154e4 (patch)
treee958bf1f2b6aa7664e929b894b15448da446d030 /app/models/enabled_module.rb
parent94da4a33f5d9353d4b8228163462d5711721285f (diff)
downloadredmine-f1437b7ec59ba9126d93b239d29c85820e7154e4.tar.gz
redmine-f1437b7ec59ba9126d93b239d29c85820e7154e4.zip
Reinitialize an empty Wiki page after after project wiki is deleted (#34634).
git-svn-id: https://svn.redmine.org/redmine/trunk@22370 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/enabled_module.rb')
-rw-r--r--app/models/enabled_module.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/enabled_module.rb b/app/models/enabled_module.rb
index 237563228..1b97903fb 100644
--- a/app/models/enabled_module.rb
+++ b/app/models/enabled_module.rb
@@ -34,7 +34,7 @@ class EnabledModule < ActiveRecord::Base
when 'wiki'
# Create a wiki with a default start page
if project && project.wiki.nil?
- Wiki.create(:project => project, :start_page => 'Wiki')
+ Wiki.create_default(project)
end
end
end