when reverting import batch: don't try to delete items that are already deleted

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Galen Charlton 2007-11-12 17:13:44 -06:00 committed by Joshua Ferraro
parent fa480ea4f3
commit 983033fd59

View file

@ -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();