diff --git a/app/views/wiki/edit.html.erb b/app/views/wiki/edit.html.erb index 6c1c7c53a..3a5a4709f 100644 --- a/app/views/wiki/edit.html.erb +++ b/app/views/wiki/edit.html.erb @@ -22,7 +22,8 @@ <%= fp.select :parent_id, content_tag('option', '', :value => '') + - wiki_page_options_for_select(@wiki.pages.all(:include => :parent) - + wiki_page_options_for_select( + @wiki.pages.includes(:parent).all - @page.self_and_descendants, @page.parent) %>

<% end %>