Bug 23057: (QA follow-up) Remove new AddReturn message ReturnOfLostItemBlocked, use...
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 11 Jun 2019 11:46:57 +0000 (07:46 -0400)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 16 Jul 2019 13:40:22 +0000 (14:40 +0100)
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Matha Fuerst <mfuerst@hmcpl.org>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

C4/Circulation.pm
C4/SIP/ILS/Transaction/Checkin.pm

index bf8caac..de4dc99 100644 (file)
@@ -1944,7 +1944,6 @@ sub AddReturn {
     }
 
     if ( $item->itemlost and C4::Context->preference("BlockReturnOfLostItems") ) {
-        $messages->{'ReturnOfLostItemBlocked'};
         $doreturn = 0;
     }
 
index eed26c1..f0e8bbd 100644 (file)
@@ -89,8 +89,8 @@ sub do_checkin {
     if ($messages->{withdrawn}) {
         $self->alert_type('99');
     }
-    if ($messages->{ReturnOfLostItemBlocked}) {
-        $self->alert_type('99');
+    if ($messages->{WasLost}) {
+        $self->alert_type('99') if C4::Context->preference("BlockReturnOfLostItems");
     }
     if ($messages->{Wrongbranch}) {
         $self->{item}->destination_loc($messages->{Wrongbranch}->{Rightbranch});
@@ -128,7 +128,7 @@ sub do_checkin {
         $self->{item}->hold_patron_id( $messages->{ResFound}->{borrowernumber} );
         $self->{item}->destination_loc( $messages->{ResFound}->{branchcode} );
     }
-    # ignoring messages: NotIssued, WasLost, WasTransfered
+    # ignoring messages: NotIssued, WasTransfered
 
     if ($cv_triggers_alert) {
         $self->alert( defined $self->alert_type ); # Overwrites existing alert value, should set to 0 if there is no alert type