mirror of
https://github.com/SuiteCRM/SuiteCRM.git
synced 2026-03-02 19:16:58 -05:00
Email code breaking custom detailview for contacts #5286
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#5286
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 @cyb456 on GitHub (Jan 6, 2025).
Issue
I set a specific bean value in my contacts custom detail view
this value gets overwritten when loading the detail view due to this line: https://github.com/salesagility/SuiteCRM/blob/hotfix/include/SugarObjects/templates/basic/Basic.php#L108
Possible Fix
No response
Steps to Reproduce the Issue
Context
No response
Version
7.14.2
What browser are you currently using?
Chrome
Browser Version
chromium
Environment Information
mariadb, php 7
Operating System and Version
ubuntu
@johnM2401 commented on GitHub (Jan 22, 2025):
Hey!
Thank you for getting in touch.
Apologies, but would you be able to give us an example of the code/files used for this, or where the change was made?
I've given this a try locally and am not able to replicate as of yet.
For example:
I've added a custom view.detail.php to:
/custom/modules/Accounts/views/view.detail.phpWith the following:
This then renders as such on the Detailview of my Account module:
Is this what you are experiencing?
Please let me know if there's anything I am missing!
Thanks!
@cyb456 commented on GitHub (Jan 22, 2025):
It has to be one that makes use of the email field, such as contacts.
The code I linked is inside the function getEmailAddressId
On the install of suite I manage, I commented that line out when I first reported this and have not noticed any side effect since then.
@johnM2401 commented on GitHub (Jan 22, 2025):
Hey!
Ahh Great, thank you.
I can replicate now, I was missing an email address on my testing records, I've marked this as a bug appropriately.
Thank you again!