Bug 65812 - Restore flags from bug entry template
git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@816 6955db30-a419-402b-8a0d-67ecbb4d7f56master
parent
1e272d1dc7
commit
73559bafe4
|
@ -389,6 +389,17 @@ my %default;
|
|||
|
||||
$vars->{'product'} = $product;
|
||||
|
||||
# CustIS Bug 65812 - Flags are not restored from bug entry template
|
||||
{
|
||||
my $types = $product->flag_types->{bug};
|
||||
for (@$types)
|
||||
{
|
||||
$_->{default_value} = formvalue('flag_type-'.$_->id);
|
||||
$_->{default_requestee} = formvalue('requestee_type-'.$_->id);
|
||||
}
|
||||
$vars->{product_flag_types} = $types;
|
||||
}
|
||||
|
||||
$vars->{'priority'} = get_legal_field_values('priority');
|
||||
$vars->{'bug_severity'} = get_legal_field_values('bug_severity');
|
||||
$vars->{'rep_platform'} = get_legal_field_values('rep_platform') if Bugzilla->params->{useplatform};
|
||||
|
|
|
@ -488,7 +488,7 @@ TUI_hide_default('expert_fields');
|
|||
[% END %]
|
||||
|
||||
[% IF display_flag_headers %]
|
||||
[% PROCESS "flag/list.html.tmpl" flag_types = product.flag_types.bug
|
||||
[% PROCESS "flag/list.html.tmpl" flag_types = product_flag_types
|
||||
any_flags_requesteeble = any_flags_requesteeble
|
||||
flag_table_id = "bug_flags"
|
||||
%]
|
||||
|
|
|
@ -127,11 +127,11 @@
|
|||
class="flag_select flag_type-[% type.id %]">
|
||||
<option value="X"></option>
|
||||
[% IF type.is_requestable && user.can_request_flag(type) %]
|
||||
<option value="?">?</option>
|
||||
<option value="?" [% " selected" IF type.default_value == "?" %]>?</option>
|
||||
[% END %]
|
||||
[% IF user.can_set_flag(type) %]
|
||||
<option value="+">+</option>
|
||||
<option value="-">-</option>
|
||||
<option value="+" [% " selected" IF type.default_value == "+" %]>+</option>
|
||||
<option value="-" [% " selected" IF type.default_value == "-" %]>-</option>
|
||||
[% END %]
|
||||
</select>
|
||||
</td>
|
||||
|
@ -142,7 +142,7 @@
|
|||
[% INCLUDE "global/userselect-combobox.html.tmpl"
|
||||
name => "requestee_type-$type.id"
|
||||
id => "requestee_type-$type.id"
|
||||
value => ""
|
||||
value => type.default_requestee
|
||||
multiple => type.is_multiplicable
|
||||
emptyok => !type.is_multiplicable
|
||||
usemenuforusers => type.custom_list
|
||||
|
|
Loading…
Reference in New Issue