Fix bug when editing home

This commit is contained in:
Christophe Vilayphiou 2012-02-20 03:22:53 +08:00
parent 44a346ffe9
commit 3ff2e7867e
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
<%= f.error_messages %>
<%= f.hidden_field :parent, :value => @item.parent.id %>
<%= f.hidden_field :parent, :value => (@item.parent.id rescue nil) %>
<p>
<%= f.label :name, t('admin.name') %>