From: Matt Selsky Date: Thu, 17 May 2012 00:49:52 +0000 (+0200) Subject: Bug 365705: Display the default CC list when listing all components of a product... X-Git-Tag: bugzilla-4.3.2~79 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=631d1489d151b8f3d800bc1c3cb3a57235cbd282;p=thirdparty%2Fbugzilla.git Bug 365705: Display the default CC list when listing all components of a product in editcomponents.cgi r/a=LpSolit --- diff --git a/template/en/default/admin/components/list.html.tmpl b/template/en/default/admin/components/list.html.tmpl index f530b47414..f8b0acb77c 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') %]