From 983033fd59b9f30049dfb1450e773ee738c51d90 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Mon, 12 Nov 2007 17:13:44 -0600 Subject: [PATCH] when reverting import batch: don't try to delete items that are already deleted Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- C4/ImportBatch.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/C4/ImportBatch.pm b/C4/ImportBatch.pm index e17bc6558e..05dae6719d 100644 --- a/C4/ImportBatch.pm +++ b/C4/ImportBatch.pm @@ -596,6 +596,7 @@ sub BatchRevertItems { my $sth = $dbh->prepare_cached("SELECT import_items_id, itemnumber FROM import_items + JOIN items USING (itemnumber) WHERE import_record_id = ?"); $sth->bind_param(1, $import_record_id); $sth->execute(); -- 2.39.5