mirror of
https://github.com/SuiteCRM/SuiteCRM.git
synced 2026-03-02 19:16:58 -05:00
Email address InlineEdit not working (Contact, Account, ...) in SuiteCRM 7.x #4857
Labels
No labels
Area: API
Area: Campaigns
Area: Cases
Area: Clean Up
Area: Clean Up: Performance
Area: Dashlets
Area: Databases
Area: Developer Tools
Area: Elasticsearch
Area: Elasticsearch
Area: Emails
Area: Emails:Campaigns
Area: Emails:Cases
Area: Emails:Compose
Area: Emails:Config
Area: Emails:Templates
Area: Environment
Area: Installation
Area: Language
Area: Mobile
Area: Module
Area: PDFs
Area: PHP8
Area: Reports
Area: Studio
Area: Styling
Area: Upgrading
Area: Workflow
Area:Activity Stream
Area:Calls
Area:Import
Area:Projects
Area:Search
Area:Surveys
Area:Themes
Area:Users
Branch:Hotfix
Good First Issue
Hacktoberfest
Help Wanted
PR:Community Contribution
PR:Type:Enhancement
Priority:Critical
Priority:Important
Priority:Moderate
Severity: Major
Severity: Minor
Severity: Moderate
Status: Requires Code Review
Status: Requires Updates
Status: Stale
Status: Team Investigating
Status:Assessed
Status:Fix Proposed
Status:Needs Assessed
Status:Requires Automated Tests
Type: Bug
Type:Deprecated
Type:Discussion
Type:Duplicate
Type:Invalid
Type:Question
Type:Suggestion
Type:Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SuiteCRM-SuiteCRM#4857
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gody01 on GitHub (Sep 12, 2022).
Issue
Inline Edit of Email adress in Contact, Account doesn't save new Email.
It works in Version 7.11.18
On Contact or Account detail view, when You try to change Email address with inline edit, after confirming change, Email changes back to original and change is not saved.
Expected Behavior
Changed Email should be saved and displayed.
Actual Behavior
Changes are not saved, and old Email address is displayed in UI also.
Possible Fix
Steps to Reproduce
Same steps in 7.11.18 normaly changed and saves new Email adress
Context
Trying to correct Email address with inline editing.
Has to Edit complete record, to make change to Email adress.
Your Environment
SuiteCRM Version used: 7.12.5 & 7.12.7
Browser name and version Chrome, Firefox / linux, windows
Environment name and version Mysql: mariadb-server-10.3.32, php-7.3.33 (SuiteCRM 7.12.7)
Environment name and version Mysql: mariadb-server-10.3.28, php-7.3.33 (SuiteCRM 7.12.5)
Operating System and version Linux RHEL 8, CentOS 8, RockyLinux 8
@pgorod commented on GitHub (Sep 13, 2022):
Perhaps related to this change?
#9409
Can you please try undoing that change and see if it fixes your bug?
@gody01 commented on GitHub (Sep 13, 2022):
Unfortunately not.
Request, which returns old Email is:
"GET /index.php?module=Home&action=saveHTMLField&field=email1¤t_module=Contacts&id=7f117037-082a-fad4-66a5-62e8e66af2a2&value=mail.address%40domain.si&view=DetailView&parent_type=&to_pdf=true HTTP/1.0" 200 369 "https://crm.gody.si/index.php?action=ajaxui"
@gody01 commented on GitHub (Sep 13, 2022):
It looksl. like function $bean->save wouldn't save email1. But it doesn't return false ...
@pgorod commented on GitHub (Sep 13, 2022):
There seems to be some additional logic for this in
include/SugarObjects/templates/company/Company.phpandinclude/SugarObjects/templates/person/Person.phpI wonder if it makes a difference if you're changing to an email that already exists in EmailAddresses table; or to one that doesn't exist there yet. I know that the
email1field is just short-hand for "the first related email in EmailAddresses table", but keeping those two bits of data in sync sometimes gets complicated...@gody01 commented on GitHub (Sep 13, 2022):
Yes, I compared debug logs from 7.11.18 and 7.12.7 and in 7.11.18 there are queries to:
email_addr_bean_rel
table, while in 7.12.7 there is none.
@gody01 commented on GitHub (Sep 13, 2022):
Just tested.
Changing to existing email address also doesn't work.
@timo-ecm2 commented on GitHub (Oct 10, 2023):
I have tested this one in the current version 7.12.13, and as expected, it is still present.
@phil8900 commented on GitHub (Oct 6, 2025):
The issue still exists in Version 7.14.7.
@phil8900 commented on GitHub (Oct 6, 2025):
Could someone take a look at the fix proposed here?
It seems to work.