diff options
author | cyeh%bluemartini.com <> | 2001-02-23 03:11:22 +0100 |
---|---|---|
committer | cyeh%bluemartini.com <> | 2001-02-23 03:11:22 +0100 |
commit | 4560c2324d978970871bfbe6a9480b17a915342f (patch) | |
tree | ea9c3fbfa85e250208178ab599b4bef51418f37f /describecomponents.cgi | |
parent | 76dd91d8df6ede4ae5f05036148d996848711c02 (diff) | |
download | bugzilla-4560c2324d978970871bfbe6a9480b17a915342f.tar.gz bugzilla-4560c2324d978970871bfbe6a9480b17a915342f.tar.xz |
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-x | describecomponents.cgi | 10 |
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> |