mirror of
https://github.com/SuiteCRM/SuiteCRM.git
synced 2026-03-02 19:16:58 -05:00
Organizations: The contact displayed in emails of the Organizations History subpanel does not belong to the organization #4688
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#4688
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 @SinergiaCRM on GitHub (Jan 19, 2022).
Issue
An organization's History subpanel displays emails sent to people related to the organization.
In those emails that come from a campaign, in the contact column, only one of the contacts that has received the email is shown and there are times when this contact does not belong to the organization. This is because there are people who have received the marketing email that is not from the organization and depends on the list of contacts that the query returns
Expected Behavior
Always show a contact belonging to the organization in the contact column
Actual Behavior
En algunos emails se muestra un contacto que no pertenece a la organización
Possible Fix
A possible solution would be to modify the query that returns the contacts.:
Adding in
modules/Emails/Email.php, in the functionfill_in_additional_detail_fields ()the next code:After
add:
and before:
add:
Although in the code we see that there are several calls to that function and perhaps it would be advisable to pass a parameter to the function to identify the context and add the code only when it is displaying an email in the History subpanel of an organization.
Steps to Reproduce
Context
The information displayed in the subpanel is wrong
Your Environment
SuiteCRM Version used: Version 7.11.15
Browser name and version: Chrome Versión 97.0.4692.71 (Build oficial) (64 bits)
Environment name and version: MySQL, PHP 7
Operating System and version: Ubuntu 18.04