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

Unable to change email1 field via API #10513

Open
JackBuchanan opened this issue Sep 3, 2024 · 1 comment
Open

Unable to change email1 field via API #10513

JackBuchanan opened this issue Sep 3, 2024 · 1 comment
Labels
Area: API Issues & PRs related to all things regarding the API Area: Emails Issues & PRs related to all things regarding emails & email module Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Severity: Moderate Key function failed, but no or little impact Status:Fix Proposed A issue that has a PR related to it that provides a possible resolution Type: Bug Bugs within the core SuiteCRM codebase

Comments

@JackBuchanan
Copy link
Contributor

Issue

When creating a record with an email1 field(Contacts/accounts etc) you are able to pass in the email1 field into the body to set the email:

POST: <SuiteCRM_URL>/Api/V8/module
BODY:
{
"data": {
"type": "Contacts",
"attributes": {
"first_name": "Bob",
"last_name": "Dylan",
"email1": "[email protected]"
}
}
}

This successfully creates the contact with the email1 populated.

When attempting the same call with a PATCH request to update the email1 field the other fields are updated but email1 is not changed.

Possible Fix

No response

Steps to Reproduce the Issue

1. Setup V8 API
2. Make API request with contents as described above
3. See record created after POST
4. See record email1 stay unchanged after PATCH request

Context

No response

Version

7.14.4

What browser are you currently using?

Chrome

Browser Version

No response

Environment Information

MySQL, PHP8.2

Operating System and Version

Ubuntu 22

@JackBuchanan JackBuchanan added the Type: Bug Bugs within the core SuiteCRM codebase label Sep 3, 2024
JackBuchanan added a commit to JackBuchanan/SuiteCRM that referenced this issue Sep 3, 2024
…new logic to update related email account record

Load relationship and set email_address and email_address_caps
@johnM2401 johnM2401 added Status:Fix Proposed A issue that has a PR related to it that provides a possible resolution Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Area: Emails Issues & PRs related to all things regarding emails & email module Area: API Issues & PRs related to all things regarding the API Severity: Moderate Key function failed, but no or little impact labels Sep 5, 2024
@johnM2401
Copy link
Contributor

Hey @JackBuchanan!
Thanks for raising this, with a fix.
For reference, duplicate issues: #9960 / #8293

Thanks!

jack7anderson7 pushed a commit to JackBuchanan/SuiteCRM that referenced this issue Sep 12, 2024
…new logic to update related email account record

Load relationship and set email_address and email_address_caps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: API Issues & PRs related to all things regarding the API Area: Emails Issues & PRs related to all things regarding emails & email module Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Severity: Moderate Key function failed, but no or little impact Status:Fix Proposed A issue that has a PR related to it that provides a possible resolution Type: Bug Bugs within the core SuiteCRM codebase
Projects
None yet
Development

No branches or pull requests

2 participants