lib/sugarcrm/connection/api/get_relationships.rb in sugarcrm-0.9.9 vs lib/sugarcrm/connection/api/get_relationships.rb in sugarcrm-0.9.10
- old
+ new
@@ -11,17 +11,17 @@
:deleted => ''
}.merge! opts
json = <<-EOF
{
- \"session\": \"#{@session}\"\,
- \"module_name\": \"#{module_name}\"\,
- \"module_id\": \"#{id}\"\,
- \"link_field_name\": \"#{related_to.downcase}\"\,
- \"related_module_query\": \"#{options[:query]}\"\,
- \"related_fields\": #{resolve_related_fields(module_name, related_to)}\,
- \"related_module_link_name_to_fields_array\": #{options[:link_fields].to_json}\,
- \"deleted\": #{options[:deleted]}
+ "session": "#{@session}",
+ "module_name": "#{module_name}",
+ "module_id": "#{id}",
+ "link_field_name": "#{related_to.downcase}",
+ "related_module_query": "#{options[:query]}",
+ "related_fields": #{resolve_related_fields(module_name, related_to)},
+ "related_module_link_name_to_fields_array": #{options[:link_fields].to_json},
+ "deleted": #{options[:deleted]}
}
EOF
json.gsub!(/^\s{6}/,'')
SugarCRM::Response.new(send!(:get_relationships, json), {:always_return_array => true}).to_obj
end
\ No newline at end of file