Skip to content

Commit

Permalink
fix for relationship
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaysingh1980 committed May 9, 2013
1 parent 0a26fc9 commit 4eb0a88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sugarcrm/connection/api/get_relationships.rb
Expand Up @@ -22,7 +22,7 @@ def get_relationships(module_name, id, related_to, opts={})
"module_id": "#{id}",
"link_field_name": "#{related_to.downcase}",
"related_module_query": "#{options[:query]}",
"related_fields": #{options[:related_fields].to_json},
"related_fields": #{((options and options[:related_fields].present?) ? options[:related_fields] : resolve_related_fields(module_name, related_to) ).to_json},
"related_module_link_name_to_fields_array": #{options[:link_fields].to_json},
"deleted": #{options[:deleted]}
}
Expand Down

0 comments on commit 4eb0a88

Please sign in to comment.