aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcyeh%bluemartini.com <>2001-02-23 02:11:22 +0000
committercyeh%bluemartini.com <>2001-02-23 02:11:22 +0000
commit4560c2324d978970871bfbe6a9480b17a915342f (patch)
treeea9c3fbfa85e250208178ab599b4bef51418f37f /describecomponents.cgi
parentMade dupe table populating code not break on multi-line dupe comments. Thanks... (diff)
downloadbugzilla-4560c2324d978970871bfbe6a9480b17a915342f.tar.gz
bugzilla-4560c2324d978970871bfbe6a9480b17a915342f.tar.bz2
bugzilla-4560c2324d978970871bfbe6a9480b17a915342f.zip
fix for 66876: Using userids (mediumint) for initialowner and initialqacontact
based on patch submitted by baulig@suse.de (Martin Baulig).
Diffstat (limited to 'describecomponents.cgi')
-rwxr-xr-xdescribecomponents.cgi10
1 files changed, 8 insertions, 2 deletions
diff --git a/describecomponents.cgi b/describecomponents.cgi
index e1b646f51..4353af2fc 100755
--- a/describecomponents.cgi
+++ b/describecomponents.cgi
@@ -78,9 +78,15 @@ print "</tr>";
SendSQL("select value, initialowner, initialqacontact, description from components where program = " . SqlQuote($product) . " order by value");
+my @data;
while (MoreSQLData()) {
- my @row = FetchSQLData();
- my ($component, $initialowner, $initialqacontact, $description) = (@row);
+ push @data, [FetchSQLData()];
+}
+foreach (@data) {
+ my ($component, $initialownerid, $initialqacontactid, $description) = @$_;
+
+ my ($initialowner, $initialqacontact) = ($initialownerid ? DBID_to_name ($initialownerid) : '',
+ $initialqacontactid ? DBID_to_name ($initialqacontactid) : '');
print qq|
<tr><td colspan=$cols><hr></td></tr>