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

(-)a/C4/Log.pm (+4 lines)
Lines 124-129 sub logaction { Link Here
124
        # Log diff against empty hashref for newly created objects
124
        # Log diff against empty hashref for newly created objects
125
        $updated = $is_object ? $original->unblessed : $original;
125
        $updated = $is_object ? $original->unblessed : $original;
126
        $original = {};
126
        $original = {};
127
    } elsif ( $actionname eq 'DELETE' ) {
128
        # Log diff for deleted objects against empty hashref
129
        $original = $is_object ? $original->unblessed : $original;
130
        $updated = {};
127
    } else {
131
    } else {
128
        # Log diff against hashref of pre-modified object if passed in
132
        # Log diff against hashref of pre-modified object if passed in
129
        $original = $is_object ? $original->unblessed : $original;
133
        $original = $is_object ? $original->unblessed : $original;
(-)a/Koha/Item.pm (-2 / +1 lines)
Lines 278-284 sub delete { Link Here
278
278
279
    $self->_after_item_action_hooks({ action => 'delete' });
279
    $self->_after_item_action_hooks({ action => 'delete' });
280
280
281
    logaction( "CATALOGUING", "DELETE", $self->itemnumber, "item" )
281
    logaction( "CATALOGUING", "DELETE", $self->itemnumber, "item", undef, $self )
282
      if C4::Context->preference("CataloguingLog");
282
      if C4::Context->preference("CataloguingLog");
283
283
284
    Koha::BackgroundJob::BatchUpdateBiblioHoldsQueue->new->enqueue(
284
    Koha::BackgroundJob::BatchUpdateBiblioHoldsQueue->new->enqueue(
285
- 

Return to bug 37944