summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/views/wiki/edit.html.erb3
1 files changed, 2 insertions, 1 deletions
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 @@
<label><%= l(:field_parent_title) %></label>
<%= 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) %>
</p>
<% end %>