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

MySQL error when changing email for user #10433

Open
azzy9 opened this issue May 21, 2024 · 0 comments
Open

MySQL error when changing email for user #10433

azzy9 opened this issue May 21, 2024 · 0 comments
Labels
Type: Bug Bugs within the core SuiteCRM codebase

Comments

@azzy9
Copy link

azzy9 commented May 21, 2024

Issue

While changing an email address for a user within admin I noticed an error within the log.
While my environment is suitecrm 8, the issue is within the legacy files.

LOG FILE:
[FATAL] Query Failed: UPDATE email_addresses SET email_address = '[email protected]', email_address_caps = '[email protected]' WHERE id = ''bee3d040-8f84-31e0-787d-634e8a7ee022'' AND deleted = 0: MySQL error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'bee3d040-8f84-31e0-787d-634e8a7ee022'' AND deleted = 0' at line 6

Possible Fix

The issue is: https://github.com/salesagility/SuiteCRM/blob/hotfix/include/SugarEmailAddress/SugarEmailAddress.php#L469
The id is being double quoted.

Steps to Reproduce the Issue

1. go to a user in admin
2. change email
3. check log for error

Context

No response

Version

8.6.0

What browser are you currently using?

Other

Browser Version

No response

Environment Information

PHP 8.1

Operating System and Version

ubuntu 22.04

@azzy9 azzy9 added the Type: Bug Bugs within the core SuiteCRM codebase label May 21, 2024
azzy9 added a commit to azzy9/SuiteCRM that referenced this issue May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Bugs within the core SuiteCRM codebase
Projects
None yet
Development

No branches or pull requests

1 participant