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
a1f34102
Commit
a1f34102
authored
Mar 08, 2000
by
terry%mozilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Oops! canconfirm bit wasn't actually working.
parent
21a4e6c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
16 deletions
+9
-16
process_bug.cgi
process_bug.cgi
+9
-16
No files found.
process_bug.cgi
View file @
a1f34102
...
...
@@ -146,13 +146,8 @@ sub CheckCanChangeField {
"WHERE bug_id = $bugid"
);
(
$reporterid
,
$ownerid
,
$qacontactid
)
=
(
FetchSQLData
());
}
if
(
$reporterid
eq
$whoid
||
$ownerid
eq
$whoid
||
$qacontactid
eq
$whoid
)
{
if
(
$f
ne
"bug_status"
)
{
return
1
;
}
if
(
$newvalue
eq
$::unconfirmedstate
||
!
IsOpenedState
(
$newvalue
))
{
return
1
;
}
if
(
$f
eq
"bug_status"
&&
$newvalue
ne
$::unconfirmedstate
&&
IsOpenedState
(
$newvalue
))
{
# Hmm. They are trying to set this bug to some opened state
# that isn't the UNCONFIRMED state. Are they in the right
...
...
@@ -165,16 +160,14 @@ sub CheckCanChangeField {
if
(
$UserInCanConfirmGroupSet
)
{
return
1
;
}
my
$fieldid
=
GetFieldID
(
"bug_status"
);
SendSQL
(
"SELECT newvalue FROM bugs_activity "
.
"WHERE fieldid = $fieldid "
.
" AND oldvalue = '$::unconfirmedstate'"
);
while
(
MoreSQLData
())
{
my
$n
=
FetchOneColumn
();
if
(
IsOpenedState
(
$n
)
&&
$n
ne
$::unconfirmedstate
)
{
return
1
;
}
SendSQL
(
"SELECT everconfirmed FROM bugs WHERE bug_id = $bugid"
);
my
$everconfirmed
=
FetchOneColumn
();
if
(
$everconfirmed
)
{
return
1
;
}
}
elsif
(
$reporterid
eq
$whoid
||
$ownerid
eq
$whoid
||
$qacontactid
eq
$whoid
)
{
return
1
;
}
SendSQL
(
"UNLOCK TABLES"
);
$oldvalue
=
value_quote
(
$oldvalue
);
...
...
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