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
c0266d1f
Commit
c0266d1f
authored
Feb 23, 2003
by
bbaetz%acm.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 194394 - Internal error after turning useqacontact off
r,a=justdave
parent
9fc47ebe
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
6 deletions
+18
-6
Bug.pm
Bug.pm
+8
-2
Bug.pm
Bugzilla/Bug.pm
+8
-2
globals.pl
globals.pl
+1
-1
process_bug.cgi
process_bug.cgi
+1
-1
No files found.
Bug.pm
View file @
c0266d1f
...
...
@@ -50,9 +50,13 @@ sub fields {
bug_file_loc status_whiteboard keywords
priority bug_severity target_milestone
dependson blocked votes
reporter assigned_to
qa_contact
cc
reporter assigned_to cc
)
;
if
(
Param
(
'useqacontact'
))
{
push
@fields
,
"qa_contact"
;
}
if
(
Param
(
'timetrackinggroup'
))
{
push
@fields
,
qw(estimated_time remaining_time actual_time)
;
}
...
...
@@ -182,6 +186,8 @@ sub initBug {
if
(
Param
(
'useqacontact'
)
&&
$self
->
{
'qa_contact'
}
>
0
)
{
$self
->
{
'qa_contact'
}
=
new
Bugzilla::
User
(
$self
->
{
'qa_contact'
});
}
else
{
$self
->
{
'qa_contact'
}
=
undef
;
}
my
$ccSet
=
new
RelationSet
;
...
...
@@ -376,7 +382,7 @@ sub user {
# and actually try to make the change.
$self
->
{
'user'
}
->
{
'canedit'
}
=
$::userid
==
0
||
$::userid
==
$self
->
{
'reporter'
}{
'id'
}
||
(
$self
->
{
'qa_contact'
}
&&
$::userid
==
$self
->
{
'qa_contact'
}{
'id'
})
||
(
Param
(
'useqacontact'
)
&&
$self
->
{
'qa_contact'
}
&&
$::userid
==
$self
->
{
'qa_contact'
}{
'id'
})
||
$::userid
==
$self
->
{
'assigned_to'
}{
'id'
}
||
&::
UserInGroup
(
"editbugs"
);
$self
->
{
'user'
}
->
{
'canconfirm'
}
=
$::userid
==
0
...
...
Bugzilla/Bug.pm
View file @
c0266d1f
...
...
@@ -50,9 +50,13 @@ sub fields {
bug_file_loc status_whiteboard keywords
priority bug_severity target_milestone
dependson blocked votes
reporter assigned_to
qa_contact
cc
reporter assigned_to cc
)
;
if
(
Param
(
'useqacontact'
))
{
push
@fields
,
"qa_contact"
;
}
if
(
Param
(
'timetrackinggroup'
))
{
push
@fields
,
qw(estimated_time remaining_time actual_time)
;
}
...
...
@@ -182,6 +186,8 @@ sub initBug {
if
(
Param
(
'useqacontact'
)
&&
$self
->
{
'qa_contact'
}
>
0
)
{
$self
->
{
'qa_contact'
}
=
new
Bugzilla::
User
(
$self
->
{
'qa_contact'
});
}
else
{
$self
->
{
'qa_contact'
}
=
undef
;
}
my
$ccSet
=
new
RelationSet
;
...
...
@@ -376,7 +382,7 @@ sub user {
# and actually try to make the change.
$self
->
{
'user'
}
->
{
'canedit'
}
=
$::userid
==
0
||
$::userid
==
$self
->
{
'reporter'
}{
'id'
}
||
(
$self
->
{
'qa_contact'
}
&&
$::userid
==
$self
->
{
'qa_contact'
}{
'id'
})
||
(
Param
(
'useqacontact'
)
&&
$self
->
{
'qa_contact'
}
&&
$::userid
==
$self
->
{
'qa_contact'
}{
'id'
})
||
$::userid
==
$self
->
{
'assigned_to'
}{
'id'
}
||
&::
UserInGroup
(
"editbugs"
);
$self
->
{
'user'
}
->
{
'canconfirm'
}
=
$::userid
==
0
...
...
globals.pl
View file @
c0266d1f
...
...
@@ -661,7 +661,7 @@ sub CanSeeBug {
||
((
$userid
>
0
)
&&
(
(
$assigned_to
==
$userid
)
||
(
$qa_contact
==
$userid
)
||
(
Param
(
'useqacontact'
)
&&
$qa_contact
==
$userid
)
||
((
$reporter
==
$userid
)
&&
$rep_access
)
||
(
$found_cc
&&
$cc_access
)
||
(
$found_groups
==
$found_members
)
...
...
process_bug.cgi
View file @
c0266d1f
...
...
@@ -410,7 +410,7 @@ sub CheckCanChangeField {
}
# Allow the QA contact to change anything.
if
(
$qacontactid
eq
$whoid
)
{
if
(
Param
(
'useqacontact'
)
&&
(
$qacontactid
eq
$whoid
)
)
{
return
1
;
}
...
...
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