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
f64f2234
Commit
f64f2234
authored
Jun 21, 2000
by
endico%mozilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
forgot the reporter and URL fields
parent
4a206aa8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
2 deletions
+24
-2
importxml.pl
importxml.pl
+24
-2
No files found.
importxml.pl
View file @
f64f2234
...
...
@@ -135,7 +135,7 @@ for (my $k=1 ; $k <= $bugqty ; $k++) {
}
my
%
all_fields
;
foreach
my
$field
(
qw (dependson
product
bug_status
priority
cc
version
bug_id
rep_platform
short_desc
assigned_to
resolution
bug_id
rep_platform
short_desc
assigned_to
bug_file_loc
resolution
delta_ts
component
reporter
urlbase
target_milestone
bug_severity
creation_ts
qa_contact
keyword
status_whiteboard
op_sys
blocks
))
{
$all_fields
{
$field
}
=
"x"
;
...
...
@@ -230,6 +230,11 @@ for (my $k=1 ; $k <= $bugqty ; $k++) {
}
}
if
(
(
defined
$bug_fields
{
'bug_file_loc'
})
&&
(
$bug_fields
{
'bug_file_loc'
})
){
$query
.=
"bug_file_loc,\n"
;
$values
.=
SqlQuote
(
UnQuoteXMLChars
(
$bug_fields
{
'bug_file_loc'
}))
.
",\n"
;
}
if
(
(
defined
$bug_fields
{
'short_desc'
})
&&
(
$bug_fields
{
'short_desc'
})
){
$query
.=
"short_desc,\n"
;
$values
.=
SqlQuote
(
UnQuoteXMLChars
(
$bug_fields
{
'short_desc'
}))
.
",\n"
;
...
...
@@ -349,6 +354,23 @@ for (my $k=1 ; $k <= $bugqty ; $k++) {
$err
.=
". Setting to default severity \"normal\".\n"
;
}
my
$reporterid
=
DBname_to_id
(
$bug_fields
{
'reporter'
});
if
(
(
$bug_fields
{
'reporter'
})
&&
(
$reporterid
)
)
{
$values
.=
"'$reporterid',\n"
;
$query
.=
"reporter,\n"
;
}
else
{
$values
.=
"'$exporterid',\n"
;
$query
.=
"reporter,\n"
;
$err
.=
"The original reporter of this bug does not have\n"
;
$err
.=
" an account here. Reassigning to the person who moved\n"
;
$err
.=
" it here, $exporter.\n"
;
if
(
$bug_fields
{
'reporter'
}
)
{
$err
.=
" Previous reporter was $bug_fields{'reporter'}.\n"
;
}
else
{
$err
.=
" Previous reporter is unknown.\n"
;
}
}
my
$changed_owner
=
0
;
if
(
(
$bug_fields
{
'assigned_to'
})
&&
(
DBname_to_id
(
$bug_fields
{
'assigned_to'
}))
)
{
...
...
@@ -360,7 +382,7 @@ for (my $k=1 ; $k <= $bugqty ; $k++) {
$changed_owner
=
1
;
$err
.=
"The original owner of this bug does not have\n"
;
$err
.=
" an account here. Reassigning to the person who moved\n"
;
$err
.=
" it here, $
bug_fields{'exporter'}
\n"
;
$err
.=
" it here, $
exporter.
\n"
;
if
(
$bug_fields
{
'assigned_to'
}
)
{
$err
.=
" Previous owner was $bug_fields{'assigned_to'}.\n"
;
}
else
{
...
...
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