Skip to content
Snippets Groups Projects
Commit 354c0445 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

not parent self

parent 01df8d51
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@
<div class="col-lg-6">
<%= f.input :title %>
<%= f.association :parent,
collection: collection_tree(@item.menu.items),
collection: collection_tree(@item.menu.items, @item),
label_method: ->(p) { sanitize p[:label] },
value_method: ->(p) { p[:id] } %>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment