Open 2xaronl opened 1 year ago
Can you post the contents of this "a long alphanumeric string of characters is shown"? It might provide clues.
Emails: a@a.com in the Detail View gets shown as:
YToyOntzOjE3OiJlbWFpbF90YXJnZXRfdHlwZSI7YToxOntpOjA7czoxMzoiRW1haWwgQWRkcmVzcyI7fXM6NToiZW1haWwiO2E6MTp7aTowO3M6NzoiYUBhLmNvbSI7fX0=
in the List View.
Changing it to b@a.com yields:
YToyOntzOjE3OiJlbWFpbF90YXJnZXRfdHlwZSI7YToxOntpOjA7czoxMzoiRW1haWwgQWRkcmVzcyI7fXM6NToiZW1haWwiO2E6MTp7aTowO3M6NzoiYkBhLmNvbSI7fX0=
After a hunch and a quick search, it looks like the text is being encoded in base64 for the List View.
Exactly. That decodes to
a:2:{s:17:"email_target_type";a:1:{i:0;s:13:"Email Address";}s:5:"email";a:1:{i:0;s:7:"a@a.com";}}
and
a:2:{s:17:"email_target_type";a:1:{i:0;s:13:"Email Address";}s:5:"email";a:1:{i:0;s:7:"b@a.com";}}
for some reason it's saving an entire array in that field, not just the email address.
It would be interesting to find out how the detail view handles it...
Issue
I am using SuiteCRM 7.12.6 and found that after adding the 'Email Recipients' field of Scheduled Reports to the List View using Studio that the Email Recipients field is not rendered correctly. A long alphanumeric string of characters is shown instead of the 3 Users I had selected. The 'Email Recipients' field DOES render correctly in the Detail View. The issue persists whether I enter in the Email Recipients as a User within SuiteCRM or as an Email.
Expected Behavior
The Email Recipients field should be rendered correctly, like it does in the Detail View.
Actual Behavior
The Email Recipients field renders as a long alphanumeric string in List View but correctly in Detail View.
Possible Fix
Unsure at this time.
Steps to Reproduce
Context
I just ran into this bug today. I wanted to be able to compare Email Recipients across Scheduled Reports so I could verify I had them set to the correct recipients without needing to view their Detail Views individually.
Your Environment