Closed
Bug 474320
Opened 17 years ago
Closed 16 years ago
Additional variables for Mail Notification template
Categories
(Bugzilla :: Email Notifications, enhancement)
Bugzilla
Email Notifications
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: misc, Unassigned)
Details
Attachments
(2 files)
|
1.07 KB,
patch
|
Details | Diff | Splinter Review | |
|
1.26 KB,
patch
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5
Build Identifier: Latest CVS as of 2009-01-19
Many of the bug fields are available for use in the Mail Notification template (newchangedmail.txt.tmpl), but some are missing.
Below shows context diff with the ones I have added to my install and would like added upstream to official source.
Thanks.
Index: Bugzilla/BugMail.pm
===================================================================
RCS file: /cvsroot/mozilla/webtools/bugzilla/Bugzilla/BugMail.pm,v
retrieving revision 1.124
diff -c -r1.124 BugMail.pm
*** Bugzilla/BugMail.pm 1 Jan 2009 23:24:38 -0000 1.124
--- Bugzilla/BugMail.pm 19 Jan 2009 17:35:34 -0000
***************
*** 662,667 ****
--- 662,671 ----
changername => $values{'changername'},
reporter => $values{'reporter'},
reportername => Bugzilla::User->new({name => $values{'reporter'}})->name,
+ qacontact => $values{'qa_contact'},
+ qacontactname => Bugzilla::User->new({name => $values{'qacontact'}})->name,
+ cc => $values{'cc'},
+ resolution => $values{'resolution'},
diffs => $diffs,
threadingmarker => build_thread_marker($id, $user->id, $isnew),
};
Reproducible: Always
Steps to Reproduce:
1. Attempt to use in newchangedmail.txt.tmpl : qacontact, cc, resolution, etc.
2.
3.
Actual Results:
null
Expected Results:
Replacement of template token with actual value from bug
Comment 1•17 years ago
|
||
Please attach patches as an attachment.
This is the patch I am currently using with my 3.0.3 Bugzilla install.
I have created a patch that would apply to the latest BugMail.pm file.
I have not tested this as I only have a 3.0.3 install.
Comment 4•17 years ago
|
||
Really we should just be passing bug objects to the template...
Comment 5•16 years ago
|
||
We don't need more variables passed to the email template. Bugzilla 3.8 now pass the bug object directly, see bug 395451.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•