Page 1 of 1

How to put reporter name into the Subject of Notification mail?

Posted: 12 May 2020, 18:10
by szollosi
Hello Every One,
I searched these forum, but I did not find answer to my need.
I need the name of the reporter put into the Subject of the notification e-mail.
How can I make it work?
Thank you for your help.
Szollosi

Re: How to put reporter name into the Subject of Notification mail?

Posted: 14 May 2020, 13:49
by cas
This is not available out of the box, you would need to adjust a core script.
There is a function called "email_buid_subject" in core/email_api.php
There you need to add the reporter to tghe subject line.

Re: How to put reporter name into the Subject of Notification mail?

Posted: 17 Jan 2021, 18:09
by szollosi
Thank you
I found these:
$t_email_subject = '[' . $p_project_name . ' ' . $t_bug_id . ']: ' . $p_subject;

I tried with these:

$t_email_subject = '[' . $p_project_name . ' ' . $t_bug_id . ']: ' . $p_subject. $t_reporter_id ;
but nothing changed.
What code should I put there?

Re: How to put reporter name into the Subject of Notification mail?

Posted: 18 Jan 2021, 12:03
by cas
Think something would have changed but not what you expected. $t_reportd_id is just a number and I assume you would like to have a name.
so I would look @ something like:
$t_email_subject = '[' . $p_project_name . ' ' . $t_bug_id . ']: ' . $p_subject. '( '.user_get_realname($t_reporter_id) . ' )';