Skip to content

Searching for Project by name broken #107

@roboyak

Description

@roboyak

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'"
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions