Sha256: 3d38ee5a9ff8a95f4462acde25656de847e3359150301890ec17825a68c49e2c

Contents?: true

Size: 398 Bytes

Versions: 11

Compression:

Stored size: 398 Bytes

Contents

module SugarCRM; class Connection
  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)
      if mod
        fields = mod.fields.keys
      else  
        fields = "id"
      end
    end
    return fields.to_json
  end
end; end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sugarcrm-0.9.7 lib/sugarcrm/connection/helper.rb
sugarcrm-0.9.6 lib/sugarcrm/connection/helper.rb
sugarcrm-0.9.5 lib/sugarcrm/connection/helper.rb
sugarcrm-0.9.4 lib/sugarcrm/connection/helper.rb
sugarcrm-0.9.3 lib/sugarcrm/connection/helper.rb
sugarcrm-0.9.2 lib/sugarcrm/connection/helper.rb
sugarcrm-0.9.1 lib/sugarcrm/connection/helper.rb
sugarcrm-0.9.0 lib/sugarcrm/connection/helper.rb
sugarcrm-0.8.2 lib/sugarcrm/connection/helper.rb
sugarcrm-0.8.1 lib/sugarcrm/connection/helper.rb
sugarcrm-0.8.0 lib/sugarcrm/connection/helper.rb