Bug 28799: Log when item was lost and now found
authorNick Clemens <nick@bywatersolutions.com>
Thu, 5 Aug 2021 13:17:19 +0000 (13:17 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 11 Oct 2022 13:43:36 +0000 (10:43 -0300)
commit80eb5555d6e2a944669046fd1abb7ac91db4ccb9
tree0bdc2b13c41fd0a0d85b0b6a07a3aec80e4d8348
parent047489ece0c990bbd6259dd9a59cf3613dd67b5d
Bug 28799: Log when item was lost and now found

In the subroutine ModDateLastSeen we unset an item's lost status when
checked in.

This routine passes a noi log parameter to the store request, this is
to avoid spamming the cataloguing log on every checkin.

When marking an item unlost we should record this change.

To test:
1 - Enable cataloguing log
2 - Mark an item lost
3 - View the log and confirm this chagne was recorded
4 - Check the item in
5 - The message indicates item is now found, but logs have no new entry
6 - Apply patch, restart all
7 - Mark the item lost and verify it is logged
8 - Check the item in, reported found and log entry recorded

Signed-off-by: Andrew Fuerste-Henry <andrewfh@dubcolib.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Items.pm
t/db_dependent/Items.t