diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-04-21 12:19:56 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-04-21 12:19:56 +0000 |
commit | bb44430b631eba1d33b218c97cb5d506073aeb08 (patch) | |
tree | 7e37b43149c5fceebb2a61a08f4c0d814c009615 /app/models/wiki_page.rb | |
parent | 65cbd94e422ed7119edc474f2c66bdb675f32f98 (diff) | |
download | redmine-bb44430b631eba1d33b218c97cb5d506073aeb08.tar.gz redmine-bb44430b631eba1d33b218c97cb5d506073aeb08.zip |
Ask user what to do with child pages when deleting a parent wiki page (#3202).
3 options are available:
* move child pages as root pages
* move child pages to another parent page
* delete all descendants
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2676 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/wiki_page.rb')
-rw-r--r-- | app/models/wiki_page.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/wiki_page.rb b/app/models/wiki_page.rb index f8bbcdebd..19858dbd4 100644 --- a/app/models/wiki_page.rb +++ b/app/models/wiki_page.rb @@ -22,7 +22,7 @@ class WikiPage < ActiveRecord::Base belongs_to :wiki has_one :content, :class_name => 'WikiContent', :foreign_key => 'page_id', :dependent => :destroy acts_as_attachable :delete_permission => :delete_wiki_pages_attachments - acts_as_tree :order => 'title' + acts_as_tree :dependent => :nullify, :order => 'title' acts_as_event :title => Proc.new {|o| "#{l(:label_wiki)}: #{o.title}"}, :description => :text, |