From f01aea3b165a1598f9708c1fff449b57ef6a8a42 Mon Sep 17 00:00:00 2001 From: Blou Date: Thu, 22 Sep 2016 09:33:53 -0400 Subject: [PATCH] Bug 17328 - import_records.marcxml_old requires a value https://bugs.koha-community.org/show_bug.cgi?id=17238 --- C4/ImportBatch.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/ImportBatch.pm b/C4/ImportBatch.pm index 88d670d..8c03e96 100644 --- a/C4/ImportBatch.pm +++ b/C4/ImportBatch.pm @@ -1557,9 +1557,9 @@ sub _create_import_record { my ($batch_id, $record_sequence, $marc_record, $record_type, $encoding, $z3950random, $marc_type) = @_; my $dbh = C4::Context->dbh; - my $sth = $dbh->prepare("INSERT INTO import_records (import_batch_id, record_sequence, marc, marcxml, + my $sth = $dbh->prepare("INSERT INTO import_records (import_batch_id, record_sequence, marc, marcxml, marcxml_old, record_type, encoding, z3950random) - VALUES (?, ?, ?, ?, ?, ?, ?)"); + VALUES (?, ?, ?, ?, '', ?, ?, ?)"); $sth->execute($batch_id, $record_sequence, $marc_record->as_usmarc(), $marc_record->as_xml($marc_type), $record_type, $encoding, $z3950random); my $import_record_id = $dbh->{'mysql_insertid'}; -- 2.1.0