diff --git a/app/views/admin/pages/_form.html.erb b/app/views/admin/pages/_form.html.erb index ecabdd13..c0cb433d 100644 --- a/app/views/admin/pages/_form.html.erb +++ b/app/views/admin/pages/_form.html.erb @@ -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) %>
<%= f.label :name, t('admin.name') %>