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

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
szollosi
Posts: 7
Joined: 12 May 2020, 17:09

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

Post 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
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

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

Post 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.
szollosi
Posts: 7
Joined: 12 May 2020, 17:09

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

Post 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?
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

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

Post 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) . ' )';
Post Reply