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 {
$att->{'isprivate'} = 0;
}
$dbh->do("INSERT INTO attachments
(bug_id, creation_ts, filename, description, mimetype,
ispatch, isprivate, isobsolete, submitter_id)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)",
undef, $id, $att->{'date'}, $att->{'filename'},
(bug_id, creation_ts, modification_time, filename, description,
mimetype, ispatch, isprivate, isobsolete, submitter_id)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",
undef, $id, $att->{'date'}, $att->{'date'}, $att->{'filename'},
$att->{'desc'}, $att->{'ctype'}, $att->{'ispatch'},
$att->{'isprivate'}, $att->{'isobsolete'}, $exporterid);
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