From dea0b67fe1593697bc322523da73d9cba974c4ed Mon Sep 17 00:00:00 2001 From: did Date: Tue, 30 Aug 2011 23:13:34 +0200 Subject: [PATCH] fix another bug related to the issue #179 --- app/helpers/admin/custom_fields_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/admin/custom_fields_helper.rb b/app/helpers/admin/custom_fields_helper.rb index 75940a0b..61140c6d 100644 --- a/app/helpers/admin/custom_fields_helper.rb +++ b/app/helpers/admin/custom_fields_helper.rb @@ -84,7 +84,7 @@ module Admin::CustomFieldsHelper end def options_for_has_one_or_has_many(field, content = nil, &block) - content_type = field.target.constantize._parent + content_type = field.target.constantize._parent.reload if content_type.groupable? grouped_contents = content_type.list_or_group_contents