New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How best to debug a missing case number in case notification email. #8113
Comments
How do you generate the notification? Please update your "steps to reproduce" to include that, not just the template creation. After having the template ready, you do something to trigger the notification, what is it, exactly? |
Updated. Just using the UI to create a case. |
And where did you set up the email template? Do you mean you edited |
Yes, I put my modified template in /custom/include/language/en_us.notify_template.html line 68 starts the case :
Also, thanks for taking a look at this. |
Was this not reproducible? |
I'm sorry, I just didn't have time to look at this again. I'm thinking that a possible problem is if the number doesn't yet exist, because the case is being created. If you send the email at a later event (for example, changing the assignment of a Case that has already been created and saved earlier), does the CASE_NUMBER appear? |
No problem at all. Yes, secondary assignment works, and the template has access to the number, this is only an issue on case creation. I was eventually able to hit a breakpoint on the object being passed to Smarty and it's definitely not there. Version 6.x of this functionality worked without issue, but I believe custom notification template handling changed a lot since then. |
Ok, that's interesting. So when you hit that breakpoint, if you look at the call stack and see where it's being called from, in one of the levels above you should find the place were eventually (further ahead) the case number gets assigned. Maybe it's possible to move that to a point earlier in the code, so you have it available in the notification? (or, saying it the other way around, maybe the notification can be moved to a later point) |
Hello, @iba-jsykes The issue has been marked as stale because there has been no recent activity. It will be closed if no further activity occurs. Regards, |
Hey @iba-jsykes Closing this issue due to inactivity. Regards, |
Issue
I have a new install of 7.11.7 and my case number is missing from my notification email.
In Case.php, i have the following writing to the log :
which outputs :
Tue Oct 22 11:44:41 2019 [1528][1][DEBUG] debugging case
Tue Oct 22 11:44:41 2019 [1528][1][DEBUG]
$case->name works just fine.
I've added CASE_NUMBER to my email template, which obviously is blank.
The database entry for this email HAS the case number.
The log file and the actual email do not.
Expected Behavior
This was working in a previous version.
Steps to Reproduce
1.Set up custom email template
2.Try to add CASE_NUMBER
3.Create a case using the UI and assign it.
4.User gets email, case number is blank.
Your Environment
The text was updated successfully, but these errors were encountered: