E-Mail bug in listview at Contacts

Hi,

im customizing the suitcrm and there is maybe a bug or something like that in the listview at the module Contacts.


As you see in the image, the E-Mail is displayed twice, if i edit it inline, it changes but as soon as I reload the website, it is doubled again. I didn’t change anything in the contacts module regarding the e-mail.

What can i do to get rid of this?

What is your SuiteCRM version?

Are you using any custom code?

Im using suitecrm 7.14 and I’m using custom code but not for the e-mail in the Contact-Module

Please say the minor version also: 7.14.?

The custom code could be affecting things in other ways - anything customizing list views, or sugarFields

But this is a bug that I have seen happen in the past, and it is supposedly fixed in the newer versions.

If you can use the browser dev tools to inspect the HTML of that field and post it here, I can try finding where it is being generated, but it takes some luck for the HTML to have something distinctive in it, sometimes it’s not possible to find things like that.

Its 7.14.1

here is the HTML-Code

Does you code in
include/generic/SugarWidgets/SugarWidgetSubPanelTopComposeEmailButton.php

match this code?

Or is it different?

Check also if you have any custom versions of that file.

The codes match exactly and I did look in the directory custom/include and there is only the file tabConfig.php, so no :slight_smile:

:thinking:

I was wrong, it’s probably coming from here:

https://github.com/salesagility/SuiteCRM/blob/hotfix/modules/Emails/EmailUI.php#L425

but that code hasn’t been changed in ages.

Can you upgrade to the latest 7.14.x in a test environment, and see if it helps?

Or perhaps check your viewdefs files for the contacts list view, I see you have customizations there; it would be useful to know how the definition for the email field is set-up.

7.14.5 Upgrade from 7.14.x

This probably happened during an update from an earlier version of SuiteCRM (that happened to me also).
You should look at custom/modules/Contacts/metadata/listviewdefs.php
You will most probably find something like

    'customCode' => '{$EMAIL1_LINK}{$EMAIL1}</a>',

replace that by

    'customCode' => '{$EMAIL1_LINK}',
1 Like

This is exactly what i found!! Thank you very much!! Both of you helped me a lot

1 Like

You might have the same problem on Leads and Accounts if you display the email address and have customized the list view