Skip to content

Commit

Permalink
Fixed in case of unselected dynamic field
Browse files Browse the repository at this point in the history
  • Loading branch information
cykod committed May 5, 2010
1 parent 7f930fd commit b23b7d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/content_model.rb
Expand Up @@ -188,7 +188,7 @@ def self.dynamic_field_info(field_name) #:nodoc:
field_class = dynamic_fields_class(module_info)

# return the class and the calling method
if field_class && field_class.dynamic_field_hash[field_info.to_sym]
if field_info && field_class && field_class.dynamic_field_hash[field_info.to_sym]
field_method = "dynamic_#{field_info}_value"
[ field_class, field_method ]
else
Expand Down

0 comments on commit b23b7d1

Please sign in to comment.