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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
14f53bd7
Commit
14f53bd7
authored
Apr 26, 2000
by
cyeh%bluemartini.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better implementation of realnames support. remove overhead of two sql
calls from bug_form.
parent
e057014b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
12 deletions
+13
-12
bug_form.pl
bug_form.pl
+8
-7
globals.pl
globals.pl
+5
-5
No files found.
bug_form.pl
View file @
14f53bd7
...
...
@@ -118,11 +118,8 @@ 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'
});
$bug
{
'assigned_to'
}
=
DBID_to_real_or_loginname
(
$bug
{
'assigned_to'
});
$bug
{
'reporter'
}
=
DBID_to_real_or_loginname
(
$bug
{
'reporter'
});
print
qq{<FORM NAME="changeform" METHOD="POST" ACTION="process_bug.cgi">\n}
;
...
...
@@ -186,7 +183,7 @@ 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'}
$bug{'reporter_name'}
</TD>
"</SELECT><TD ALIGN=RIGHT><B>Reporter:</B></TD><TD>$bug{'reporter'}</TD>
</TDTR><TR>
<TD ALIGN=RIGHT><B><A HREF=\"bug_status.html\">Status:</A></B></TD>
<TD>$bug{'bug_status'}</TD>
...
...
@@ -205,7 +202,7 @@ print "
</TR><TR>
<TD ALIGN=RIGHT><B><A HREF=\"bug_status.html#assigned_to\">Assigned To:
</A></B></TD>
<TD>$bug{'assigned_to'}
$bug{'assigned_name'}
</TD>"
;
<TD>$bug{'assigned_to'}</TD>"
;
if
(
Param
(
"usetargetmilestone"
))
{
my
$url
=
""
;
...
...
@@ -431,6 +428,10 @@ if ($canedit || $::userid == $assignedtoid ||
Resolve bug, mark it as duplicate of bug #
<INPUT NAME=dup_id SIZE=6 ONCHANGE=\"document.changeform.knob\[$knum\].checked=true\"><br>\n"
;
$knum
++
;
if
(
$bug
{
'assigned_to'
}
=~
/(.*)\((.*)\)/
)
{
$bug
{
'assigned_to'
}
=
$1
;
chop
(
$bug
{
'assigned_to'
});
}
my
$assign_element
=
"<INPUT NAME=\"assigned_to\" SIZE=32 ONCHANGE=\"document.changeform.knob\[$knum\].checked=true\" VALUE=\"$bug{'assigned_to'}\">"
;
print
"<INPUT TYPE=radio NAME=knob VALUE=reassign>
...
...
globals.pl
View file @
14f53bd7
...
...
@@ -546,14 +546,14 @@ sub InsertNewUser {
return
$password
;
}
sub
DBID_to_real_name
{
sub
DBID_to_real_
or_login
name
{
my
(
$id
)
=
(
@_
);
SendSQL
(
"SELECT realname FROM profiles WHERE userid = $id"
);
my
(
$r
)
=
FetchSQLData
();
SendSQL
(
"SELECT
login_name,
realname FROM profiles WHERE userid = $id"
);
my
(
$
l
,
$
r
)
=
FetchSQLData
();
if
(
$r
eq
""
)
{
return
;
return
$l
;
}
else
{
return
"($r)"
;
return
"
$l
($r)"
;
}
}
...
...
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