Commit 631d1489 authored by Matt Selsky's avatar Matt Selsky Committed by Frédéric Buclin

Bug 365705: Display the default CC list when listing all components of a product…

Bug 365705: Display the default CC list when listing all components of a product in editcomponents.cgi r/a=LpSolit
parent fbb9878a
......@@ -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') %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment