Bug 24566: UpdateItemLocationOnCheckin triggers SIP2 alert flag, even with checked_in...
authorKyle M Hall <kyle@bywatersolutions.com>
Mon, 3 Feb 2020 12:56:37 +0000 (07:56 -0500)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 20 Mar 2020 10:21:07 +0000 (10:21 +0000)
If UpdateItemLocationOnCheckin, it triggers an alert flag but cannot be acted on in the same way as LocalUse and thus should be removed in the same fashion.

Test Plan:
1) Enable UpdateItemLocationOnCheckin and set it up to trigger at
checkin for an item
2) Return that item via SIP2
3) Note the alert flag is set
4) Apply this patch
5) Repeat steps 1 and 2
6) The alert flag should not be set

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Kevin Cook <ILS@cedarparktexas.gov>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

C4/SIP/ILS/Transaction/Checkin.pm

index 08aaddb..ac92fa6 100644 (file)
@@ -72,6 +72,7 @@ sub do_checkin {
     my ($return, $messages, $issue, $borrower) = AddReturn($barcode, $branch, undef, dt_from_string($return_date));
 
     if ( $checked_in_ok ) {
+        delete $messages->{ItemLocationUpdated};
         delete $messages->{NotIssued};
         delete $messages->{LocalUse};
         $return = 1 unless keys %$messages;