Bug 139829 - change input to select for resctriction cc group of products
git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1876 6955db30-a419-402b-8a0d-67ecbb4d7f56master
parent
ab41979a3e
commit
db1d842e87
|
@ -273,6 +273,8 @@ if ($action eq 'edit' || (!$action && $product_name)) {
|
|||
my $length = values $controlled_fields;
|
||||
$vars->{'controlled_field_names'} = $length > 0 ? join(', ', values $controlled_fields) : "No fields";
|
||||
|
||||
$vars->{'groups'} = [map {$_->name} Bugzilla::Group->get_all];
|
||||
|
||||
$template->process("admin/products/edit.html.tmpl", $vars)
|
||||
|| ThrowTemplateError($template->error());
|
||||
exit;
|
||||
|
|
|
@ -103,7 +103,12 @@
|
|||
<tr>
|
||||
<th align="right">Restrict CC in this product bugs to group:</th>
|
||||
<td>
|
||||
<input size="64" maxlength="64" name="cc_group" value="[% product.cc_group FILTER html %]" />
|
||||
<select name="cc_group">
|
||||
<option value="">---</option>
|
||||
[% FOR group = groups %]
|
||||
<option value="[% group FILTER html %]"[% ' selected="selected"' IF group==product.cc_group %]>[% group FILTER html %]</option>
|
||||
[% END %]
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
|
Loading…
Reference in New Issue