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

(-)a/Koha/Item.pm (-2 / +3 lines)
Lines 214-219 sub delete { Link Here
214
    # FIXME check the item has no current issues
214
    # FIXME check the item has no current issues
215
    # i.e. raise the appropriate exception
215
    # i.e. raise the appropriate exception
216
216
217
    my $result = $self->SUPER::delete;
218
217
    my $indexer = Koha::SearchEngine::Indexer->new({ index => $Koha::SearchEngine::BIBLIOS_INDEX });
219
    my $indexer = Koha::SearchEngine::Indexer->new({ index => $Koha::SearchEngine::BIBLIOS_INDEX });
218
    $indexer->index_records( $self->biblionumber, "specialUpdate", "biblioserver" )
220
    $indexer->index_records( $self->biblionumber, "specialUpdate", "biblioserver" )
219
        unless $params->{skip_record_index};
221
        unless $params->{skip_record_index};
Lines 223-229 sub delete { Link Here
223
    logaction( "CATALOGUING", "DELETE", $self->itemnumber, "item" )
225
    logaction( "CATALOGUING", "DELETE", $self->itemnumber, "item" )
224
      if C4::Context->preference("CataloguingLog");
226
      if C4::Context->preference("CataloguingLog");
225
227
226
    return $self->SUPER::delete;
228
    return $result;
227
}
229
}
228
230
229
=head3 safe_delete
231
=head3 safe_delete
230
- 

Return to bug 26750