From 781336a725598eaeb0fa6cfc65b38211b42118ba Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 17 Mar 2008 21:32:09 +0000 Subject: =?UTF-8?q?Bug=20423346:=20importxml.pl=20fails=20when=20importing?= =?UTF-8?q?=20attachments=20-=20Patch=20by=20Fr=C3=83=C2=A9d=C3=83=C2=A9ri?= =?UTF-8?q?c=20Buclin=20=20r=3Dghendricks=20a=3DLpSolit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- importxml.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'importxml.pl') diff --git a/importxml.pl b/importxml.pl index 1ed9253b8..04dd98625 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' ); -- cgit v1.2.1