Lines 400-407
sub ModDateLastSeen {
Link Here
|
400 |
|
400 |
|
401 |
my $item = Koha::Items->find($itemnumber); |
401 |
my $item = Koha::Items->find($itemnumber); |
402 |
$item->datelastseen($today); |
402 |
$item->datelastseen($today); |
|
|
403 |
my $log = $item->itemlost ? 1 : 0; # If item was lost, record the change to the item |
403 |
$item->itemlost(0) unless $leave_item_lost; |
404 |
$item->itemlost(0) unless $leave_item_lost; |
404 |
$item->store({ log_action => 0, skip_record_index => $params->{skip_record_index} }); |
405 |
$item->store({ log_action => $log, skip_record_index => $params->{skip_record_index} }); |
405 |
} |
406 |
} |
406 |
|
407 |
|
407 |
=head2 CheckItemPreSave |
408 |
=head2 CheckItemPreSave |
408 |
- |
|
|