app/views/admin/pages/_page.html.erb in refinerycms-pages-0.9.9.8 vs app/views/admin/pages/_page.html.erb in refinerycms-pages-0.9.9.9

- old
+ new

@@ -26,10 +26,12 @@ :confirm => t('message', :scope => 'shared.admin.delete', :title => page.title_with_meta.gsub(/\ ?<em>.*<\/em>/, "")), :method => :delete if page.deletable? %> </span> </div> <ul class='nested'> - <% if (children = page.children).any? -%> - <%= render :partial => 'page', :collection => children %> - <% end -%> + <%= render :partial => 'page', + :collection => collection.select{|p| p.parent_id == page.id}, + :locals => { + :collection => collection + } if page.has_descendants? %> </ul> </li>