lib/civicrm/resources/custom_field.rb in civicrm-1.3.3 vs lib/civicrm/resources/custom_field.rb in civicrm-1.3.4

- old
+ new

@@ -3,11 +3,11 @@ entity :custom_field @@_custom_field_cache = {} def self.[](entity, field, cache: true) - cache_key = name + cache_key = [entity.underscore, field].join("/") if cache && @@_custom_field_cache.key?(cache_key) return @@_custom_field_cache[cache_key] end @@ -22,10 +22,10 @@ @@_custom_field_cache[cache_key] = field if cache return field end raise Errors::NotFound.new( - "CustomField of #{entity} with name=#{name}" + "CustomField of #{entity} with name=#{field}" ) end def key "custom_#{id}"