Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
b9ea507b
Commit
b9ea507b
authored
Apr 22, 2000
by
cyeh%bluemartini.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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.
parent
03262a36
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
9 deletions
+28
-9
bug_form.pl
bug_form.pl
+6
-3
globals.pl
globals.pl
+22
-6
No files found.
bug_form.pl
View file @
b9ea507b
...
...
@@ -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>
</TD
TR><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
=
""
;
...
...
globals.pl
View file @
b9ea507b
...
...
@@ -546,6 +546,16 @@ sub InsertNewUser {
return
$password
;
}
sub
DBID_to_real_name
{
my
(
$id
)
=
(
@_
);
SendSQL
(
"SELECT realname FROM profiles WHERE userid = $id"
);
my
(
$r
)
=
FetchSQLData
();
if
(
$r
eq
""
)
{
return
;
}
else
{
return
"($r)"
;
}
}
sub
DBID_to_name
{
my
(
$id
)
=
(
@_
);
...
...
@@ -721,7 +731,7 @@ sub GetLongDescriptionAsHTML {
$knownattachments
{
FetchOneColumn
()}
=
1
;
}
my
(
$query
)
=
(
"SELECT profiles.login_name, longdescs.bug_when, "
.
my
(
$query
)
=
(
"SELECT profiles.
realname, profiles.
login_name, longdescs.bug_when, "
.
" longdescs.thetext "
.
"FROM longdescs, profiles "
.
"WHERE profiles.userid = longdescs.who "
.
...
...
@@ -740,12 +750,18 @@ sub GetLongDescriptionAsHTML {
$query
.=
"ORDER BY longdescs.bug_when"
;
SendSQL
(
$query
);
while
(
MoreSQLData
())
{
my
(
$who
,
$when
,
$text
)
=
(
FetchSQLData
());
my
(
$who
,
$
email
,
$
when
,
$text
)
=
(
FetchSQLData
());
if
(
$count
)
{
$result
.=
"<BR><BR><I>------- Additional Comments From "
.
qq{<A HREF="mailto:$who">$who</A> }
.
time2str
(
"%Y-%m-%d %H:%M"
,
str2time
(
$when
))
.
" -------</I><BR>\n"
;
$result
.=
"<BR><BR><I>------- Additional Comments From "
;
if
(
$who
)
{
$result
.=
qq{<A HREF="mailto:$email">$who</A> }
.
time2str
(
"%Y-%m-%d %H:%M"
,
str2time
(
$when
))
.
" -------</I><BR>\n"
;
}
else
{
$result
.=
qq{<A HREF="mailto:$email">$email</A> }
.
time2str
(
"%Y-%m-%d %H:%M"
,
str2time
(
$when
))
.
" -------</I><BR>\n"
;
}
}
$result
.=
"<PRE>"
.
quoteUrls
(
\%
knownattachments
,
$text
)
.
"</PRE>\n"
;
$count
++
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment