diff options
author | cyeh%bluemartini.com <> | 2000-04-22 03:45:48 +0200 |
---|---|---|
committer | cyeh%bluemartini.com <> | 2000-04-22 03:45:48 +0200 |
commit | b9ea507b3a467385d5f1c34e64b3c56e15167aff (patch) | |
tree | 6d9d126f0aa0da2ece5af6f5c329ca304b0bebf7 /bug_form.pl | |
parent | 03262a3659abca6bdab5fc1cc251405e5be2f0fe (diff) | |
download | bugzilla-b9ea507b3a467385d5f1c34e64b3c56e15167aff.tar.gz bugzilla-b9ea507b3a467385d5f1c34e64b3c56e15167aff.tar.xz |
Add conditional support to display users real name in bug reports if user
entered in that information. Thanks to
Chris Baldwin <cbaldwin@redback.com>
for providing the patch.
Diffstat (limited to 'bug_form.pl')
-rw-r--r-- | bug_form.pl | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/bug_form.pl b/bug_form.pl index 1402a1a47..735dd2f1d 100644 --- a/bug_form.pl +++ b/bug_form.pl @@ -118,6 +118,9 @@ my $assignedtoid = $bug{'assigned_to'}; my $reporterid = $bug{'reporter'}; my $qacontactid = $bug{'qa_contact'}; + +$bug{'assigned_name'} = DBID_to_real_name($bug{'assigned_to'}); +$bug{'reporter_name'} = DBID_to_real_name($bug{'reporter'}); $bug{'assigned_to'} = DBID_to_name($bug{'assigned_to'}); $bug{'reporter'} = DBID_to_name($bug{'reporter'}); @@ -183,8 +186,8 @@ print " <TD ALIGN=RIGHT><B>OS:</B></TD> <TD><SELECT NAME=op_sys>" . make_options(\@::legal_opsys, $bug{'op_sys'}) . - "</SELECT><TD ALIGN=RIGHT><B>Reporter:</B></TD><TD>$bug{'reporter'}</TD> - </TR><TR> + "</SELECT><TD ALIGN=RIGHT><B>Reporter:</B></TD><TD>$bug{'reporter'} $bug{'reporter_name'}</TD> + </TDTR><TR> <TD ALIGN=RIGHT><B><A HREF=\"bug_status.html\">Status:</A></B></TD> <TD>$bug{'bug_status'}</TD> <TD ALIGN=RIGHT><B><A HREF=\"bug_status.html#priority\">Priority:</A></B></TD> @@ -202,7 +205,7 @@ print " </TR><TR> <TD ALIGN=RIGHT><B><A HREF=\"bug_status.html#assigned_to\">Assigned To: </A></B></TD> - <TD>$bug{'assigned_to'}</TD>"; + <TD>$bug{'assigned_to'} $bug{'assigned_name'}</TD>"; if (Param("usetargetmilestone")) { my $url = ""; |