summaryrefslogtreecommitdiffstats
path: root/importxml.pl
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2008-03-17 22:32:09 +0100
committerlpsolit%gmail.com <>2008-03-17 22:32:09 +0100
commit781336a725598eaeb0fa6cfc65b38211b42118ba (patch)
tree76184b32abfe5b483ea21977b6a5c99efa7b9d69 /importxml.pl
parent11b76d7de523b1aa1706f23159c139cc9512f99b (diff)
downloadbugzilla-781336a725598eaeb0fa6cfc65b38211b42118ba.tar.gz
bugzilla-781336a725598eaeb0fa6cfc65b38211b42118ba.tar.xz
Bug 423346: importxml.pl fails when importing attachments - Patch by Frédéric Buclin <LpSolit@gmail.com> r=ghendricks a=LpSolit
Diffstat (limited to 'importxml.pl')
-rwxr-xr-ximportxml.pl8
1 files changed, 4 insertions, 4 deletions
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' );