mirror of
https://github.com/SuiteCRM/SuiteCRM.git
synced 2026-03-02 19:16:58 -05:00
AOP. The case creation email is not being sent when relating a case to a contact #4729
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#4729
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 @txinparta on GitHub (Feb 9, 2022).
Issue
When a contact is associated to a case, the contact receives case creation, update and case closure emails.
If you do it the other way around, to associate a case to a contact, the inital email is not created.
Expected Behavior
In switchboards, for example, the person who attends the customer usually searches if the contact exists in the application. If it exists, it opens the contact and creates the case in the cases submodule.
The customer should receive the message of the new case opened in his/her name.
Actual Behavior
If we associate a case to a contact the initial email is not sent.
Steps to Reproduce
Context
Your Environment
@johnM2401 commented on GitHub (Feb 11, 2022):
Hey there,
I'm only able to partly replicate your issues, I'm afraid
On relating an Existing Contact to an Existing Case, The email does seem to send out, on my end.
Do you have all the relevant Email Templates selected in Admin->"Case Module Settings" ?

Do you get any errors in the SuiteCRM.log or your PHP error log?
However, I am able to replicate the issue of Cases not sending Emails on creation, so I'll mark this as a "Bug"
@txinparta commented on GitHub (Feb 16, 2022):
Hey John,
My mistake, It's true :), relating an existing Case to a Contact sends Ok the email.
(I have Email Templates selected in Admin->"Case Module Settings" )
The problems is as you say only on creation. Since the Case is new "$bean->fetched_row" is false in creationNotify function.
modules/AOP_Case_Updates/CaseUpdatesHook.php: