diff options
author | Matt Selsky <selsky@columbia.edu> | 2012-05-17 02:49:52 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2012-05-17 02:49:52 +0200 |
commit | 631d1489d151b8f3d800bc1c3cb3a57235cbd282 (patch) | |
tree | b243d2becce01a5b36485b7d4a8f895e9bb3d87d /template | |
parent | fbb9878afaced91ac5a1458a329cd9c0313e9d85 (diff) | |
download | bugzilla-631d1489d151b8f3d800bc1c3cb3a57235cbd282.tar.gz bugzilla-631d1489d151b8f3d800bc1c3cb3a57235cbd282.tar.xz |
Bug 365705: Display the default CC list when listing all components of a product in editcomponents.cgi
r/a=LpSolit
Diffstat (limited to 'template')
-rw-r--r-- | template/en/default/admin/components/list.html.tmpl | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/template/en/default/admin/components/list.html.tmpl b/template/en/default/admin/components/list.html.tmpl index f530b4741..f8b0acb77 100644 --- a/template/en/default/admin/components/list.html.tmpl +++ b/template/en/default/admin/components/list.html.tmpl @@ -41,11 +41,6 @@ name => "initialowner" heading => "Default Assignee" }, - { - name => "isactive" - heading => "Active" - yesno_field => 1 - }, ] %] @@ -58,6 +53,16 @@ [% END %] +[% columns.push({ + name => "initial_cc_names" + heading => "Initial CC list" + }, + { + name => "isactive" + heading => "Active" + yesno_field => 1 + }) %] + [% IF showbugcounts %] [% columns.push({ @@ -75,9 +80,10 @@ contentlink => delete_contentlink }) %] -[%# Overrides the initialowner and the initialqacontact with right values %] +[%# Overrides the initialowner, the initialqacontact, and the initial_cc_names with right values %] [% overrides.initialowner = {} %] [% overrides.initialqacontact = {} %] +[% overrides.initial_cc_names = {} %] [%# "component" is a reserved word in Template Toolkit. %] [% FOREACH my_component = product.components %] @@ -91,6 +97,15 @@ content => my_component.default_qa_contact.login } %] + [% SET initial_cc_list = [] %] + [% FOREACH cc_user = my_component.initial_cc %] + [% initial_cc_list.push(cc_user.login) %] + [% END %] + [% overrides.initial_cc_names.name.${my_component.name} = { + override_content => 1 + content => initial_cc_list.join(', ') + } + %] [% END %] [% Hook.process('before_table') %] |