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

Email code breaking custom detailview for contacts #10605

Open
cyb456 opened this issue Jan 6, 2025 · 3 comments
Open

Email code breaking custom detailview for contacts #10605

cyb456 opened this issue Jan 6, 2025 · 3 comments
Labels
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 Type: Bug Bugs within the core SuiteCRM codebase

Comments

@cyb456
Copy link
Contributor

cyb456 commented 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

@cyb456 cyb456 added the Type: Bug Bugs within the core SuiteCRM codebase label Jan 6, 2025
@johnM2401 johnM2401 added the Status: Requires Updates Issues & PRs which requires input or update from the author label Jan 22, 2025
@johnM2401
Copy link
Contributor

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!

@cyb456
Copy link
Contributor Author

cyb456 commented 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 johnM2401 added 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 Severity: Moderate Key function failed, but no or little impact and removed Status: Requires Updates Issues & PRs which requires input or update from the author labels Jan 22, 2025
@johnM2401
Copy link
Contributor

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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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 Type: Bug Bugs within the core SuiteCRM codebase
Projects
None yet
Development

No branches or pull requests

2 participants