From: lpsolit%gmail.com <> Date: Mon, 17 Mar 2008 21:32:09 +0000 (+0000) Subject: Bug 423346: importxml.pl fails when importing attachments - Patch by Frédéric Bucli... X-Git-Tag: bugzilla-3.1.3~283 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=781336a725598eaeb0fa6cfc65b38211b42118ba;p=thirdparty%2Fbugzilla.git Bug 423346: importxml.pl fails when importing attachments - Patch by Frédéric Buclin r=ghendricks a=LpSolit --- diff --git a/importxml.pl b/importxml.pl index 1ed9253b8b..04dd986254 100755 --- a/importxml.pl +++ b/importxml.pl @@ -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' );