Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
8c3f0e1a
Commit
8c3f0e1a
authored
Feb 16, 2005
by
travis%sedsystems.ca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
parent
64757778
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
0 deletions
+31
-0
defparams.pl
defparams.pl
+9
-0
enter_bug.cgi
enter_bug.cgi
+14
-0
create.html.tmpl
template/en/default/bug/create/create.html.tmpl
+8
-0
No files found.
defparams.pl
View file @
8c3f0e1a
...
...
@@ -888,6 +888,15 @@ You will get this message once a day until you\'ve dealt with these bugs!
},
{
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 '
.
'the milestone be set in order for a user to ACCEPT a bug?'
,
...
...
enter_bug.cgi
View file @
8c3f0e1a
...
...
@@ -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
;
...
...
template/en/default/bug/create/create.html.tmpl
View file @
8c3f0e1a
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment