Skip to content
Browse files

Bindings not set in the visible block. fixes #418

  • Loading branch information...
1 parent 5f84012 commit 1cf1684bee22396416d22e05f53c8852aa3a84ef @bbenezech bbenezech committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 app/views/rails_admin/main/_form_fieldset.html.erb
View
6 app/views/rails_admin/main/_form_fieldset.html.erb
@@ -1,8 +1,8 @@
- <% if (fields = fieldset.visible_fields).length > 0 %>
+ <% if (fields = fieldset.fields.map{ |f| f.with(:form => form, :object => object, :view => self) }.select(&:visible)).length > 0 %>
<fieldset>
<legend><%= fieldset.label %></legend>
- <% fields.map{|field| field.with(:form => form, :object => object, :view => self)}.each do |field| %>
+ <% fields.each do |field| %>
<%= field.render -%>
<% end %>
</fieldset>
- <% end %>
+ <% end %>

0 comments on commit 1cf1684

Please sign in to comment.
Something went wrong with that request. Please try again.