View | Details | Raw Unified | Return to bug 7329
Collapse All | Expand All

(-)a/C4/ImportBatch.pm (-2 / +1 lines)
Lines 687-693 sub BatchRevertBibRecords { Link Here
687
            $num_items_deleted += BatchRevertItems($rowref->{'import_record_id'}, $rowref->{'matched_biblionumber'});
687
            $num_items_deleted += BatchRevertItems($rowref->{'import_record_id'}, $rowref->{'matched_biblionumber'});
688
            SetImportRecordStatus($rowref->{'import_record_id'}, 'reverted');
688
            SetImportRecordStatus($rowref->{'import_record_id'}, 'reverted');
689
        }
689
        }
690
        my $sth2 = $dbh->prepare_cached("UPDATE import_biblios SET matched_biblionumber = NULL WHERE import_record_id = ?");
690
        my $sth2 = $dbh->prepare_cached("UPDATE import_biblios LEFT JOIN import_items USING (import_record_id) SET matched_biblionumber = NULL WHERE import_record_id = ? AND status != 'imported'" );
691
        $sth2->execute($rowref->{'import_record_id'});
691
        $sth2->execute($rowref->{'import_record_id'});
692
    }
692
    }
693
693
694
- 

Return to bug 7329