-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Description
Nice work, fantastic gem for the ruby community, I came across this issue while using gem version 0.9.18:
Searching for Project by name broken using the finders:
broken
SugarCRM::Project.find_by_name("Netflix")
SugarCRM logs are showing a pluralized table name when it shouldn't be:
AND jt2.deleted=0 where (projects.name = 'Netflix') AND project.deleted=0:
MySQL error 1054: Unknown column 'projects.name' in 'where clause'
Looks like it should be where (project.name = 'Netflix') the singular version.
work around
This alternative method does work however when searching for projects by name:
SugarCRM.connection.get_entry_list(
"Project",
"project.name = 'Netflix'"
)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels