Skip to content

Commit

Permalink
dont overwrite f - it belongs to the form! fixes fatfreecrm#225
Browse files Browse the repository at this point in the history
  • Loading branch information
yeah committed Jan 22, 2013
1 parent c371a32 commit 5713531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/fields/_edit_custom_field_group.html.haml
Expand Up @@ -2,7 +2,7 @@
= hook(:custom_field_top_section, self, :f => f) do
-# produce inputs for custom fields that do not belong to a particular field group
-# i.e. they belong to the 'custom_fields' group
- f.object.field_groups.select{|f| f.name == 'custom_fields'}.each do |field_group|
- f.object.field_groups.select{|fg| fg.name == 'custom_fields'}.each do |field_group|
- if field_group.fields.present?
- field_groups[field_group.tag.name.downcase] = "#{field_group.key}_container" if field_group.tag
= render :partial => 'fields/group', :locals => {:f => f, :field_group => field_group}

0 comments on commit 5713531

Please sign in to comment.