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

(-)a/C4/Circulation.pm (-1 lines)
Lines 1945-1951 sub AddReturn { Link Here
1945
    }
1945
    }
1946
1946
1947
    if ( $item->itemlost and C4::Context->preference("BlockReturnOfLostItems") ) {
1947
    if ( $item->itemlost and C4::Context->preference("BlockReturnOfLostItems") ) {
1948
        $messages->{'ReturnOfLostItemBlocked'};
1949
        $doreturn = 0;
1948
        $doreturn = 0;
1950
    }
1949
    }
1951
1950
(-)a/C4/SIP/ILS/Transaction/Checkin.pm (-4 / +3 lines)
Lines 89-96 sub do_checkin { Link Here
89
    if ($messages->{withdrawn}) {
89
    if ($messages->{withdrawn}) {
90
        $self->alert_type('99');
90
        $self->alert_type('99');
91
    }
91
    }
92
    if ($messages->{ReturnOfLostItemBlocked}) {
92
    if ($messages->{WasLost}) {
93
        $self->alert_type('99');
93
        $self->alert_type('99') if C4::Context->preference("BlockReturnOfLostItems");
94
    }
94
    }
95
    if ($messages->{Wrongbranch}) {
95
    if ($messages->{Wrongbranch}) {
96
        $self->{item}->destination_loc($messages->{Wrongbranch}->{Rightbranch});
96
        $self->{item}->destination_loc($messages->{Wrongbranch}->{Rightbranch});
Lines 128-134 sub do_checkin { Link Here
128
        $self->{item}->hold_patron_id( $messages->{ResFound}->{borrowernumber} );
128
        $self->{item}->hold_patron_id( $messages->{ResFound}->{borrowernumber} );
129
        $self->{item}->destination_loc( $messages->{ResFound}->{branchcode} );
129
        $self->{item}->destination_loc( $messages->{ResFound}->{branchcode} );
130
    }
130
    }
131
    # ignoring messages: NotIssued, WasLost, WasTransfered
131
    # ignoring messages: NotIssued, WasTransfered
132
132
133
    if ($cv_triggers_alert) {
133
    if ($cv_triggers_alert) {
134
        $self->alert( defined $self->alert_type ); # Overwrites existing alert value, should set to 0 if there is no alert type
134
        $self->alert( defined $self->alert_type ); # Overwrites existing alert value, should set to 0 if there is no alert type
135
- 

Return to bug 23057