Fix flag type editing error
parent
6e309990a6
commit
756d0d5fb2
|
@ -265,13 +265,14 @@ sub processCategoryChange
|
||||||
my @groups = Bugzilla::Group->get_all;
|
my @groups = Bugzilla::Group->get_all;
|
||||||
$vars->{groups} = \@groups;
|
$vars->{groups} = \@groups;
|
||||||
$vars->{action} = $ARGS->{action};
|
$vars->{action} = $ARGS->{action};
|
||||||
|
$vars->{last_action} = $ARGS->{action} eq 'update' ? 'edit' : $ARGS->{action};
|
||||||
|
|
||||||
my $type = {};
|
my $type = {};
|
||||||
foreach my $key (keys %$ARGS)
|
foreach my $key (keys %$ARGS)
|
||||||
{
|
{
|
||||||
$type->{$key} = $ARGS->{$key};
|
$type->{$key} = $ARGS->{$key};
|
||||||
}
|
}
|
||||||
# That's what I call a big hack. The template expects to see a group object.
|
# FIXME That's what I call a big hack. The template expects to see a flag type object.
|
||||||
# This script needs some rewrite anyway.
|
# This script needs some rewrite anyway.
|
||||||
$type->{grant_group} = {};
|
$type->{grant_group} = {};
|
||||||
$type->{grant_group}->{name} = $ARGS->{grant_group};
|
$type->{grant_group}->{name} = $ARGS->{grant_group};
|
||||||
|
|
|
@ -149,7 +149,7 @@
|
||||||
<th> </th>
|
<th> </th>
|
||||||
<td>
|
<td>
|
||||||
<input type="checkbox" id="is_active" name="is_active"
|
<input type="checkbox" id="is_active" name="is_active"
|
||||||
[% ' checked="checked"' IF type.is_active || !type.is_active.defined %] />
|
[% ' checked="checked"' IF type.is_active %] />
|
||||||
<label for="is_active">active (flags of this type appear in the UI and can be set)</label>
|
<label for="is_active">active (flags of this type appear in the UI and can be set)</label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -158,7 +158,7 @@
|
||||||
<th> </th>
|
<th> </th>
|
||||||
<td>
|
<td>
|
||||||
<input type="checkbox" id="is_requestable" name="is_requestable"
|
<input type="checkbox" id="is_requestable" name="is_requestable"
|
||||||
[% ' checked="checked"' IF type.is_requestable || !type.is_requestable.defined %] />
|
[% ' checked="checked"' IF type.is_requestable %] />
|
||||||
<label for="is_requestable">requestable (users can ask for flags of this type to be set)</label>
|
<label for="is_requestable">requestable (users can ask for flags of this type to be set)</label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -182,7 +182,7 @@
|
||||||
<th> </th>
|
<th> </th>
|
||||||
<td>
|
<td>
|
||||||
<input type="checkbox" id="is_requesteeble" name="is_requesteeble"
|
<input type="checkbox" id="is_requesteeble" name="is_requesteeble"
|
||||||
[% ' checked="checked"' IF type.is_requesteeble || !type.is_requesteeble.defined %] />
|
[% ' checked="checked"' IF type.is_requesteeble %] />
|
||||||
<label for="is_requesteeble">specifically requestable (users can ask specific other users
|
<label for="is_requesteeble">specifically requestable (users can ask specific other users
|
||||||
to set flags of this type as opposed to just asking the wind)</label>
|
to set flags of this type as opposed to just asking the wind)</label>
|
||||||
</td>
|
</td>
|
||||||
|
@ -192,7 +192,7 @@
|
||||||
<th> </th>
|
<th> </th>
|
||||||
<td>
|
<td>
|
||||||
<input type="checkbox" id="is_multiplicable" name="is_multiplicable"
|
<input type="checkbox" id="is_multiplicable" name="is_multiplicable"
|
||||||
[% ' checked="checked"' IF type.is_multiplicable || !type.is_multiplicable.defined %] />
|
[% ' checked="checked"' IF type.is_multiplicable %] />
|
||||||
<label for="is_multiplicable">multiplicable (multiple flags of this type can be set on
|
<label for="is_multiplicable">multiplicable (multiple flags of this type can be set on
|
||||||
the same [% typeLabelLowerSingular %])</label>
|
the same [% typeLabelLowerSingular %])</label>
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Reference in New Issue