From: Galen Charlton Date: Mon, 12 Nov 2007 23:13:44 +0000 (-0600) Subject: when reverting import batch: don't try to delete items that are already deleted X-Git-Tag: v3.00.00-alpha~936 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=983033fd59b9f30049dfb1450e773ee738c51d90;p=koha_fer when reverting import batch: don't try to delete items that are already deleted Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- 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();