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
72d9f52a
Commit
72d9f52a
authored
May 12, 2010
by
Max Kanat-Alexander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 556105: process_bug.cgi: Change the setting of normal global bug fields
to use set_all r=dkl, a=mkanat
parent
4971fab0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
13 deletions
+16
-13
process_bug.cgi
process_bug.cgi
+16
-13
No files found.
process_bug.cgi
View file @
72d9f52a
...
@@ -325,14 +325,23 @@ my @set_fields = qw(op_sys rep_platform priority bug_severity
...
@@ -325,14 +325,23 @@ my @set_fields = qw(op_sys rep_platform priority bug_severity
deadline remaining_time estimated_time)
;
deadline remaining_time estimated_time)
;
push
(
@set_fields
,
'assigned_to'
)
if
!
$cgi
->
param
(
'set_default_assignee'
);
push
(
@set_fields
,
'assigned_to'
)
if
!
$cgi
->
param
(
'set_default_assignee'
);
push
(
@set_fields
,
'qa_contact'
)
if
!
$cgi
->
param
(
'set_default_qa_contact'
);
push
(
@set_fields
,
'qa_contact'
)
if
!
$cgi
->
param
(
'set_default_qa_contact'
);
my
%
field_translation
=
(
bug_severity
=>
'severity'
,
rep_platform
=>
'platform'
,
short_desc
=>
'summary'
,
bug_file_loc
=>
'url'
,
);
my
%
set_all_fields
;
foreach
my
$field_name
(
@set_fields
)
{
if
(
should_set
(
$field_name
))
{
my
$param_name
=
$field_translation
{
$field_name
}
||
$field_name
;
$set_all_fields
{
$param_name
}
=
$cgi
->
param
(
$field_name
);
}
}
my
@custom_fields
=
Bugzilla
->
active_custom_fields
;
my
@custom_fields
=
Bugzilla
->
active_custom_fields
;
my
%
methods
=
(
bug_severity
=>
'set_severity'
,
rep_platform
=>
'set_platform'
,
short_desc
=>
'set_summary'
,
bug_file_loc
=>
'set_url'
,
);
foreach
my
$b
(
@bug_objects
)
{
foreach
my
$b
(
@bug_objects
)
{
if
(
should_set
(
'comment'
)
||
$cgi
->
param
(
'work_time'
))
{
if
(
should_set
(
'comment'
)
||
$cgi
->
param
(
'work_time'
))
{
# Add a comment as needed to each bug. This is done early because
# Add a comment as needed to each bug. This is done early because
...
@@ -341,13 +350,7 @@ foreach my $b (@bug_objects) {
...
@@ -341,13 +350,7 @@ foreach my $b (@bug_objects) {
{
isprivate
=>
scalar
$cgi
->
param
(
'commentprivacy'
),
{
isprivate
=>
scalar
$cgi
->
param
(
'commentprivacy'
),
work_time
=>
scalar
$cgi
->
param
(
'work_time'
)
});
work_time
=>
scalar
$cgi
->
param
(
'work_time'
)
});
}
}
foreach
my
$field_name
(
@set_fields
)
{
$b
->
set_all
(
\%
set_all_fields
);
if
(
should_set
(
$field_name
))
{
my
$method
=
$methods
{
$field_name
};
$method
||=
"set_"
.
$field_name
;
$b
->
$method
(
$cgi
->
param
(
$field_name
));
}
}
$b
->
reset_assigned_to
if
$cgi
->
param
(
'set_default_assignee'
);
$b
->
reset_assigned_to
if
$cgi
->
param
(
'set_default_assignee'
);
$b
->
reset_qa_contact
if
$cgi
->
param
(
'set_default_qa_contact'
);
$b
->
reset_qa_contact
if
$cgi
->
param
(
'set_default_qa_contact'
);
...
...
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