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
003e49ae
Commit
003e49ae
authored
May 16, 2010
by
Max Kanat-Alexander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 428452: Move code to set/modify keywords from process_bug.cgi into
Bugzilla::Bug::set_all r=dkl, a=mkanat
parent
56665569
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
12 deletions
+8
-12
Bug.pm
Bugzilla/Bug.pm
+5
-1
process_bug.cgi
process_bug.cgi
+3
-11
No files found.
Bugzilla/Bug.pm
View file @
003e49ae
...
...
@@ -1854,6 +1854,11 @@ sub set_all {
my
$self
=
shift
;
my
(
$params
)
=
@_
;
if
(
exists
$params
->
{
'keywords'
})
{
$self
->
modify_keywords
(
$params
->
{
'keywords'
},
$params
->
{
'keywords_action'
});
}
if
(
exists
$params
->
{
'comment'
}
or
exists
$params
->
{
'work_time'
})
{
# Add a comment as needed to each bug. This is done early because
# there are lots of things that want to check if we added a comment.
...
...
@@ -2350,7 +2355,6 @@ sub modify_keywords {
}
$self
->
{
'keyword_objects'
}
=
\
@result
;
return
$any_changes
;
}
sub
add_group
{
...
...
process_bug.cgi
View file @
003e49ae
...
...
@@ -306,16 +306,6 @@ elsif (should_set('dependson') || should_set('blocked')) {
}
}
my
$any_keyword_changes
;
if
(
defined
$cgi
->
param
(
'keywords'
))
{
foreach
my
$b
(
@bug_objects
)
{
my
$return
=
$b
->
modify_keywords
(
scalar
$cgi
->
param
(
'keywords'
),
scalar
$cgi
->
param
(
'keywordaction'
));
$any_keyword_changes
||=
$return
;
}
}
# Component, target_milestone, and version are in here just in case
# the 'product' field wasn't defined in the CGI. It doesn't hurt to set
# them twice.
...
...
@@ -323,7 +313,8 @@ my @set_fields = qw(op_sys rep_platform priority bug_severity
component target_milestone version
bug_file_loc status_whiteboard short_desc
deadline remaining_time estimated_time
work_time set_default_assignee set_default_qa_contact)
;
work_time set_default_assignee set_default_qa_contact
keywords keywordaction)
;
push
(
@set_fields
,
'assigned_to'
)
if
!
$cgi
->
param
(
'set_default_assignee'
);
push
(
@set_fields
,
'qa_contact'
)
if
!
$cgi
->
param
(
'set_default_qa_contact'
);
my
%
field_translation
=
(
...
...
@@ -333,6 +324,7 @@ my %field_translation = (
bug_file_loc
=>
'url'
,
set_default_assignee
=>
'reset_assigned_to'
,
set_default_qa_contact
=>
'reset_qa_contact'
,
keywordaction
=>
'keywords_action'
,
);
my
%
set_all_fields
;
...
...
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