From: bbaetz%acm.org <> Date: Sun, 27 Apr 2003 14:12:50 +0000 (+0000) Subject: Byg 202463 - prefill 'assign to' with default component owner X-Git-Tag: bugzilla-2.17.5~169 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d56611c283d252af894d27986496b1d36170c2da;p=thirdparty%2Fbugzilla.git Byg 202463 - prefill 'assign to' with default component owner patch by slamm@yahoo-inc.com (Steve Lamm) r=bbaetz, a=justdave --- diff --git a/enter_bug.cgi b/enter_bug.cgi index 9784b81a3f..8f736ff039 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; diff --git a/template/en/default/bug/create/create.html.tmpl b/template/en/default/bug/create/create.html.tmpl index fcc894e1e6..4196f77bb9 100644 --- a/template/en/default/bug/create/create.html.tmpl +++ b/template/en/default/bug/create/create.html.tmpl @@ -23,9 +23,52 @@ [% PROCESS global/header.html.tmpl title = "Enter Bug" h2 = "This page lets you enter a new bug into Bugzilla." + onload="set_assign_to();" %] -
+ + + @@ -78,7 +121,7 @@
- [%- FOREACH c = component_ %]
- Assigned To: + Assign To: - (Leave blank to assign to default component owner) +