diff options
author | travis%sedsystems.ca <> | 2005-02-16 06:51:10 +0100 |
---|---|---|
committer | travis%sedsystems.ca <> | 2005-02-16 06:51:10 +0100 |
commit | 8c3f0e1aeaddedd8a9b377ed4ff9a8a31b917600 (patch) | |
tree | 7e45ddc67e9c490a301d0715a6f17fecfa87ec3e /enter_bug.cgi | |
parent | 647577784777d9b71113d5353efbcfa4600fb6ae (diff) | |
download | bugzilla-8c3f0e1aeaddedd8a9b377ed4ff9a8a31b917600.tar.gz bugzilla-8c3f0e1aeaddedd8a9b377ed4ff9a8a31b917600.tar.xz |
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
Diffstat (limited to 'enter_bug.cgi')
-rwxr-xr-x | enter_bug.cgi | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi index 8be884768..864487018 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -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; |