Method: SugarCRM::Connection#resolve_fields
- Defined in:
- lib/sugarcrm/connection/helper.rb
#resolve_fields(module_name, fields) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/sugarcrm/connection/helper.rb', line 17 def resolve_fields(module_name, fields) # FIXME: This is to work around a bug in SugarCRM 6.0 # where no fields are returned if no fields are specified if fields.length == 0 mod = Module.find(module_name.classify, @session) if mod fields = mod.fields.keys else fields = ["id"] end end return fields.to_json end |