mirror of
https://github.com/SuiteCRM/SuiteCRM.git
synced 2026-03-02 19:16:58 -05:00
Sending new assignee email while creating a case is not working. #5181
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#5181
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 @ebsi-RBakade on GitHub (Apr 3, 2024).
Issue
Email notification is not sending while creating a case at the first timet to assignee. But when we update case and reassign case to other User then it works.
Expected Behavior
It should send an email to assignee for newly created Case.
Actual Behavior
Email is not sending to assignee when new case is created.
Possible Fix
Move the following line below if else block
https://github.com/salesagility/SuiteCRM/blob/hotfix/data/SugarBean.php#L2411
$this->_sendNotifications($check_notify);it should be below if else block because at that time case is not created. It gets only created in the else block having insert() function.
When I moved _sendNotification() line below if else block then it’s working as intended.
Steps to Reproduce
Context
Your Environment
@chris001 commented on GitHub (Apr 3, 2024):
@ebsi-RBakade Would you make a new Pull Request (referencing this Issue number) with the edited file, for review, test, and if approved, add to app.
@ebsi-RBakade commented on GitHub (Apr 4, 2024):
@chris001
I have reopened this Bug. Please take a look.
@johnM2401 commented on GitHub (Apr 9, 2024):
Hey @ebsi-RBakade !
Thank you for getting in touch!
I've given this a try on the latest version, with:
SuiteCRM 7.14.3
PHP 8.2
and this appears to be working as expected.
Have I perhaps missed something in replication?
I'm attempting:
My selected user does get the assignment mail:
I see from your issue that you're using SuiteCRM 7.4.3 and PHP 5.3
Is this correct?
If so, would you be able to try on a more recent version of SuiteCRM & supported PHP version and let us know if you are still able to replicate this issue?
You also mention:
"email is received without contact and and case number."
However, I don't believe the OOTB Record Assignment Email contains this information. (See screenshot above)
Do you perhaps have a custom assignment template?
Or are you referring to another feature?
Thanks!
@ebsi-RBakade commented on GitHub (Apr 17, 2024):
@johnM2401
thanks for that Input. I confirmed that contact name and case number are the custom field added in the email template at data/SugarBean.php file inside create_notification_email() function.
@SuiteBot commented on GitHub (May 28, 2024):
This issue has been mentioned on SuiteCRM. There might be relevant details there:
https://community.suitecrm.com/t/add-case-number-to-case-assignment-email/52103/18