From aa647cd810a58dbbbb8471f8bccec92dff998714 Mon Sep 17 00:00:00 2001 From: "bbaetz%acm.org" Date: Sun, 27 Apr 2003 07:12:53 +0000 Subject: [PATCH] Byg 202463 - prefill 'assign to' with default component owner patch by slamm@yahoo-inc.com (Steve Lamm) r=bbaetz, a=justdave git-svn-id: svn://10.0.0.236/trunk@141870 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/enter_bug.cgi | 22 ++++---- .../en/default/bug/create/create.html.tmpl | 51 +++++++++++++++++-- 2 files changed, 59 insertions(+), 14 deletions(-) diff --git a/mozilla/webtools/bugzilla/enter_bug.cgi b/mozilla/webtools/bugzilla/enter_bug.cgi index 9784b81a3f0..8f736ff0396 100755 --- a/mozilla/webtools/bugzilla/enter_bug.cgi +++ b/mozilla/webtools/bugzilla/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/mozilla/webtools/bugzilla/template/en/default/bug/create/create.html.tmpl b/mozilla/webtools/bugzilla/template/en/default/bug/create/create.html.tmpl index fcc894e1e63..4196f77bb9c 100644 --- a/mozilla/webtools/bugzilla/template/en/default/bug/create/create.html.tmpl +++ b/mozilla/webtools/bugzilla/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) +