Commit 781336a7 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 423346: importxml.pl fails when importing attachments - Patch by Fré©ric…

Bug 423346: importxml.pl fails when importing attachments - Patch by Fré©ric Buclin <LpSolit@gmail.com> r=ghendricks a=LpSolit
parent 11b76d7d
...@@ -1151,10 +1151,10 @@ sub process_bug { ...@@ -1151,10 +1151,10 @@ sub process_bug {
$att->{'isprivate'} = 0; $att->{'isprivate'} = 0;
} }
$dbh->do("INSERT INTO attachments $dbh->do("INSERT INTO attachments
(bug_id, creation_ts, filename, description, mimetype, (bug_id, creation_ts, modification_time, filename, description,
ispatch, isprivate, isobsolete, submitter_id) mimetype, ispatch, isprivate, isobsolete, submitter_id)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)", VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",
undef, $id, $att->{'date'}, $att->{'filename'}, undef, $id, $att->{'date'}, $att->{'date'}, $att->{'filename'},
$att->{'desc'}, $att->{'ctype'}, $att->{'ispatch'}, $att->{'desc'}, $att->{'ctype'}, $att->{'ispatch'},
$att->{'isprivate'}, $att->{'isobsolete'}, $exporterid); $att->{'isprivate'}, $att->{'isobsolete'}, $exporterid);
my $att_id = $dbh->bz_last_key( 'attachments', 'attach_id' ); my $att_id = $dbh->bz_last_key( 'attachments', 'attach_id' );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment