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
50ac3a20
Commit
50ac3a20
authored
Oct 08, 2011
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 691845: importxml.pl complains if an open bug has the resolution field set to ''
r=dkl a=LpSolit
parent
9afc9a7d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
importxml.pl
importxml.pl
+5
-8
No files found.
importxml.pl
View file @
50ac3a20
...
...
@@ -854,8 +854,6 @@ sub process_bug {
}
# Status & Resolution
my
$has_res
=
defined
(
$bug_fields
{
'resolution'
});
my
$has_status
=
defined
(
$bug_fields
{
'bug_status'
});
my
$valid_res
=
check_field
(
'resolution'
,
scalar
$bug_fields
{
'resolution'
},
undef
,
ERR_LEVEL
);
...
...
@@ -910,10 +908,10 @@ sub process_bug {
}
}
if
(
$has_status
)
{
if
(
$status
)
{
if
(
$valid_status
){
if
(
$is_open
){
if
(
$has_res
)
{
if
(
$resolution
)
{
$err
.=
"Resolution set on an open status.\n"
;
$err
.=
" Dropping resolution $resolution\n"
;
$resolution
=
undef
;
...
...
@@ -947,7 +945,7 @@ sub process_bug {
}
}
else
{
# $is_open is false
if
(
!
$has_res
)
{
if
(
!
$resolution
)
{
$err
.=
"Missing Resolution. Setting status to "
;
if
(
$everconfirmed
){
$status
=
$initial_status
;
...
...
@@ -977,9 +975,8 @@ sub process_bug {
$err
.=
$bug_fields
{
'bug_status'
}
.
"\".\n"
;
$resolution
=
undef
;
}
}
else
{
#has_status is false
else
{
if
(
$everconfirmed
){
$status
=
$initial_status
;
}
...
...
@@ -991,7 +988,7 @@ sub process_bug {
$resolution
=
undef
;
}
if
(
defined
$resolution
)
{
if
(
$resolution
)
{
push
(
@query
,
"resolution"
);
push
(
@values
,
$resolution
);
}
...
...
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