Email code breaking custom detailview for contacts #5286

Open
opened 2026-02-20 16:32:22 -05:00 by deekerman · 3 comments
Owner

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

  1. in contacts detail view, set a value for a custom field, calculated during the detailview php (not database stored) for example: $this->bean->custom_html_c = "stuff here"

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

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 1. in contacts detail view, set a value for a custom field, calculated during the detailview php (not database stored) for example: $this->bean->custom_html_c = "stuff here" ### 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
Author
Owner

@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.php
With the following:

Image

This then renders as such on the Detailview of my Account module:

Image


Is this what you are experiencing?
Please let me know if there's anything I am missing!

Thanks!

@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.php``` With the following: ![Image](https://github.com/user-attachments/assets/af3bd242-5daa-42b6-8e8b-5680c2b4995c) This then renders as such on the Detailview of my Account module: ![Image](https://github.com/user-attachments/assets/76c31ee1-c478-4927-a448-4ae2bae67d05) <br> Is this what you are experiencing? Please let me know if there's anything I am missing! Thanks!
Author
Owner

@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.

@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.
Author
Owner

@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!

@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!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SuiteCRM-SuiteCRM#5286
No description provided.