From ba5ae8322e7636ef9826420f8599ea21eca83501 Mon Sep 17 00:00:00 2001 From: Cindy Ames Date: Wed, 1 Apr 2015 11:13:05 -0400 Subject: [PATCH] [SIGNED-OFF] Bug 13938 - Staging MARC records for import fails It appears that bug 8970 has introduced a bug where a MARC file uploaded for staging fails to import *unless* a matching rule is selected. Test Plan: 1) Apply this patch 2) Stage and import a MARC record *without* choosing a matching rule 3) Note the staging works as expected Signed-off-by: Cindy Ames --- tools/stage-marc-import.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/stage-marc-import.pl b/tools/stage-marc-import.pl index a5f4d17..b1670b7 100755 --- a/tools/stage-marc-import.pl +++ b/tools/stage-marc-import.pl @@ -156,6 +156,8 @@ if ($completedJobID) { } else { $matcher_failed = 1; } + } else { + $dbh->commit(); } my $results = { -- 1.7.10.4