Bug 99567 : Allow Milestone to be set on creation of bug as an option
Patch by Todd Stansell <tjs@tellme.com> r=kiko,justdave a=justdave git-svn-id: svn://10.0.0.236/trunk@169221 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -887,6 +887,15 @@ You will get this message once a day until you\'ve dealt with these bugs!
|
||||
default => 0
|
||||
},
|
||||
|
||||
{
|
||||
name => 'letsubmitterchoosemilestone',
|
||||
desc => 'If this is on, then people submitting bugs can choose the ' .
|
||||
'Target Milestone for that bug. If off, then all bugs initially ' .
|
||||
'have the default milestone for the product being filed in.',
|
||||
type => 'b',
|
||||
default => 1
|
||||
},
|
||||
|
||||
{
|
||||
name => 'musthavemilestoneonaccept',
|
||||
desc => 'If you are using Target Milestone, do you want to require that ' .
|
||||
|
||||
@@ -53,6 +53,7 @@ use vars qw(
|
||||
@legal_keywords
|
||||
$userid
|
||||
%versions
|
||||
%target_milestone
|
||||
$proddesc
|
||||
$classdesc
|
||||
);
|
||||
@@ -437,6 +438,19 @@ if ( ($cloned_bug_id) &&
|
||||
$default{'version'} = $vars->{'version'}->[$#{$vars->{'version'}}];
|
||||
}
|
||||
|
||||
# Get list of milestones.
|
||||
if ( Param('usetargetmilestone') ) {
|
||||
$vars->{'target_milestone'} = $::target_milestone{$product};
|
||||
if (formvalue('target_milestone')) {
|
||||
$default{'target_milestone'} = formvalue('target_milestone');
|
||||
} else {
|
||||
SendSQL("SELECT defaultmilestone FROM products WHERE " .
|
||||
"name = " . SqlQuote($product));
|
||||
$default{'target_milestone'} = FetchOneColumn();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
# List of status values for drop-down.
|
||||
my @status;
|
||||
|
||||
|
||||
@@ -159,6 +159,14 @@ function set_assign_to() {
|
||||
[% INCLUDE select %]
|
||||
</tr>
|
||||
|
||||
[% IF Param('usetargetmilestone') && Param('letsubmitterchoosemilestone') %]
|
||||
<tr>
|
||||
[% sel = { description => 'Target Milestone', name => 'target_milestone' } %]
|
||||
[% INCLUDE select %]
|
||||
<td colspan="2"></td>
|
||||
</tr>
|
||||
[% END %]
|
||||
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td colspan="3"></td>
|
||||
|
||||
Reference in New Issue
Block a user