aboutsummaryrefslogtreecommitdiffstats
path: root/enter_bug.cgi
diff options
context:
space:
mode:
authorbbaetz%acm.org <>2003-04-27 14:12:50 +0000
committerbbaetz%acm.org <>2003-04-27 14:12:50 +0000
commitd56611c283d252af894d27986496b1d36170c2da (patch)
tree190578849ab0b7e7f5758e2e996a54af5c3de043 /enter_bug.cgi
parentb47c2c65cf72b993d5cedffd2325b6bfb90e28d5 (diff)
downloadbugs-d56611c283d252af894d27986496b1d36170c2da.tar
bugs-d56611c283d252af894d27986496b1d36170c2da.tar.gz
bugs-d56611c283d252af894d27986496b1d36170c2da.tar.bz2
bugs-d56611c283d252af894d27986496b1d36170c2da.tar.xz
bugs-d56611c283d252af894d27986496b1d36170c2da.zip
Byg 202463 - prefill 'assign to' with default component owner
patch by slamm@yahoo-inc.com (Steve Lamm) r=bbaetz, a=justdave
Diffstat (limited to 'enter_bug.cgi')
-rwxr-xr-xenter_bug.cgi22
1 files changed, 12 insertions, 10 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi
index 9784b81a3..8f736ff03 100755
--- a/enter_bug.cgi
+++ b/enter_bug.cgi
@@ -242,17 +242,19 @@ elsif (1 == @{$::components{$product}}) {
}
my @components;
-SendSQL("SELECT name, description FROM components " .
- "WHERE product_id = $product_id ORDER BY name");
+SendSQL("SELECT name, description, login_name, realname
+ FROM components, profiles
+ WHERE product_id = $product_id
+ AND initialowner=userid
+ ORDER BY name");
while (MoreSQLData()) {
- my ($name, $description) = FetchSQLData();
-
- my %component;
-
- $component{'name'} = $name;
- $component{'description'} = $description;
-
- push @components, \%component;
+ my ($name, $description, $login, $realname) = FetchSQLData();
+ push @components, {
+ name => $name,
+ description => $description,
+ default_login => $login,
+ default_realname => $realname,
+ };
}
my %default;