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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
685a5a82
Commit
685a5a82
authored
May 09, 2000
by
terry%mozilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a new param, musthavemilestoneonaccept, which requires users to
set the target milestone when accepting a bug.
parent
af0b3b81
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
2 deletions
+30
-2
defparams.pl
defparams.pl
+5
-0
process_bug.cgi
process_bug.cgi
+25
-2
No files found.
defparams.pl
View file @
685a5a82
...
...
@@ -427,6 +427,11 @@ DefParam("curmilestone",
1
,
\&
check_numeric
);
DefParam
(
"musthavemilestoneonaccept"
,
"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?"
,
"b"
,
0
);
DefParam
(
"useqacontact"
,
"Do you wish to use the QA Contact field?"
,
"b"
,
...
...
process_bug.cgi
View file @
685a5a82
...
...
@@ -45,6 +45,8 @@ use vars %::versions,
my
$whoid
=
confirm_login
();
my
$requiremilestone
=
0
;
print
"Content-type: text/html\n\n"
;
PutHeader
(
"Bug processed"
);
...
...
@@ -404,6 +406,11 @@ SWITCH: for ($::FORM{'knob'}) {
/^accept$/
&&
CheckonComment
(
"accept"
)
&&
do
{
DoConfirm
();
ChangeStatus
(
'ASSIGNED'
);
if
(
Param
(
"musthavemilestoneonaccept"
))
{
if
(
Param
(
"usetargetmilestone"
))
{
$requiremilestone
=
1
;
}
}
last
SWITCH
;
};
/^clearresolution$/
&&
CheckonComment
(
"clearresolution"
)
&&
do
{
...
...
@@ -611,16 +618,32 @@ foreach my $id (@idlist) {
SendSQL
(
"LOCK TABLES bugs $write, bugs_activity $write, cc $write, "
.
"profiles $write, dependencies $write, votes $write, "
.
"keywords $write, longdescs $write, fielddefs $write, "
.
"keyworddefs READ, groups READ, attachments READ"
);
"keyworddefs READ, groups READ, attachments READ
, products READ
"
);
my
@oldvalues
=
SnapShotBug
(
$id
);
my
%
oldhash
;
my
$i
=
0
;
foreach
my
$col
(
@::log_columns
)
{
$oldhash
{
$col
}
=
$oldvalues
[
$i
];
if
(
exists
$::FORM
{
$col
})
{
CheckCanChangeField
(
$col
,
$id
,
$oldvalues
[
$i
],
$::FORM
{
$col
});
}
$i
++
;
}
if
(
$requiremilestone
)
{
my
$value
=
$::FORM
{
'target_milestone'
};
if
(
!
defined
$value
||
$value
eq
$::dontchange
)
{
$value
=
$oldhash
{
'target_milestone'
};
}
SendSQL
(
"SELECT defaultmilestone FROM products WHERE product = "
.
SqlQuote
(
$oldhash
{
'product'
}));
if
(
$value
eq
FetchOneColumn
())
{
SendSQL
(
"UNLOCK TABLES"
);
PuntTryAgain
(
"You must determine a target milestone for bug $id "
.
"if you are going to accept it. (Part of "
.
"accepting a bug is giving an estimate of when it "
.
"will be fixed.)"
);
}
}
if
(
defined
$::FORM
{
'delta_ts'
}
&&
$::FORM
{
'delta_ts'
}
ne
$delta_ts
)
{
print
"
<H1>Mid-air collision detected!</H1>
...
...
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