Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom fields not returning with 6.4 get_entry_list #93

Open
amiorin opened this issue May 16, 2013 · 1 comment
Open

Custom fields not returning with 6.4 get_entry_list #93

amiorin opened this issue May 16, 2013 · 1 comment

Comments

@amiorin
Copy link

amiorin commented May 16, 2013

http://forums.sugarcrm.com/f6/custom-fields-problem-get_entry_list-81766/

I've the same problem discussed in the forum.
I've changed the gem here

diff --git a/lib/sugarcrm/connection/api/get_entry_list.rb b/lib/sugarcrm/connection/api/get_entry_list.rb
index ea564ee..b24cd7a 100644
--- a/lib/sugarcrm/connection/api/get_entry_list.rb
+++ b/lib/sugarcrm/connection/api/get_entry_list.rb
@@ -19,7 +19,7 @@ module SugarCRM; class Connection
         "query": "#{query}",
         "order_by": "#{options[:order_by]}",
         "offset": "#{options[:offset]}",
-        "select_fields": #{resolve_fields(module_name, options[:fields])},
+        "select_fields": "",
         "link_name_to_fields_array": #{options[:link_fields].to_json},
         "max_results": "#{options[:limit]}",
         "deleted": #{options[:deleted]}
@@ -28,4 +28,4 @@ module SugarCRM; class Connection
     json.gsub!(/^\s{6}/,'')
     SugarCRM::Response.handle(send!(:get_entry_list, json), @session)
   end
-end; end
\ No newline at end of file
+end; end

The workaround works.
All tests pass.
Do you know if they have fixed this bug in SugarCRM newest version?

@amiorin
Copy link
Author

amiorin commented May 16, 2013

With Version 6.5.13 (Build 1041) is not affected by this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant